Sending Additional Parameters To Editurl On JQgrid
My problem now is trying to send the ID (editable: false) of a row when editing that row. For example, i have a grid with columns userid(editable: false), username(editable: true)
Solution 1:
in your onSelectRow callback, you can modify the editUrl to be whatever you want, including passing in the ID you need.
$("#rowed3").jqGrid('setGridParam', {editurl:'whatever/url/you/need/with/the/id'});
jqGrid will add all the other nececessary params to that editurl for you.
Solution 2:
You can use
hidden: true, editable: true, editrules: { edithidden: false }, hidedlg: true
in the definition of the piezaId
(ID) column. The parameter hidedlg
is currently not real needed, but can be useful if you decide the use other jqGrid features.
Solution 3:
Passing values in the GET string worked for me.
editurl: '/ajax/update?line=1',
Post a Comment for "Sending Additional Parameters To Editurl On JQgrid"