1
votes

I am using jQuery Grid plugin(jQGrid) and i am wondering how could I achieve such behavior with jQGrid inline Edit Actions like on that sample http://www.trirand.net/aspnetmvc/grid/EditRowInlineActionIcons Currently i setup my jQGrid with pager with edit actions:

 .navGrid('#pager', { view: false, edit: true, add: true, del: true, search: false }); 

but i want to have inline Edit Actions like in the sample above, may be some one did something like that.

Inline Edit Actions

Need help.

UPDATE:

I put the property editactioniconscolumn: true but still din't get the Edit Actions

colNames: ['Id', 'FName', 'LName'],
colModel: [{ hidden: true, name: 'Id', index: 'Id', width: 50, align: 'left', editable: true },
{ name: 'FName', index: 'FName', width: 50, align: 'left', editable: true, editactioniconscolumn: true },
{ name: 'LName', index: 'LName', width: 50, align: 'left', editable: true, editactioniconscolumn: true }]
1
@Vasya: On the very same page, there is a description on how to enable the edit/delete/cancel buttons .. ` Just add a column anywhere you wish and set it EditActionIconsColumn property to true - this will enable automatic Edit/Save/Cancel buttons that will trigger the corresponding actions and events` .. Did you see that? - Chandu
@Cybernate see my update, and i am not using HtmlHelper i am using just jQgrid jquery plugin - Vasya Pupkin
Look at the answer which includes the demo. Is it what you need? - Oleg
By the way here you will find one more way to archive almost the same, but with respect of very simple custom formatter and beforeSelectRow or onCellSelect event handler. See the demo - Oleg
@Oleg thanks, looks like it is what i need here ok-soft-gmbh.com/jqGrid/ActionButtons.htm - Vasya Pupkin

1 Answers

1
votes

I have moved my answer to the following thread

ASP.Net MVC 3 JQGrid

I think it will be seen more there. It answers questions in both threads. It is the only comprehensive jqGrid ASP.NET MVC 3 I have found on the web that describes how to implement full CRUD functionality.

I did not repeat the post here to avoid duplicating content.