asp.net - On row click column value has to be changed in jqgrid -


i have jqgrid 4 columns , in rows database. want thing this. on row selection cell value of row has changed.

i.e.

 sno       sname      update     roll no   1        steve      rename      1001   2         jack      rename      1002 

i want update sname when user selects rename jqgrid row example if user selectes rename first row first row should following

i.e.

sno       sname        update         roll no  1        steve     update/cancel      1001  2        jack         rename          1002 

can 1 suggest me how obtain same

it seems me try make things more complex is. why not use standard behavior of jqgrid "inline editing"?

if user double-click (or click depend on requirements) on row "editable" columns of row can modified (see old answer more information). if user end row editing pressing of "enter" key changed saved. if user press "esc" key or select row changes discarded. standard inline editing supports rename/update/cancel without additional "update" column.

if want have buttons in additional column can use formatter:"actions" or use "custom editing" technique can see on the jqgrid demo if select "row editing" / "custom edit".


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -