I have a JQGrid with a button for each row, clicking the button must open a small dialog box looking window containing a edit.jsp page. I\'ve tried using
$(\"#l
You should never place the same id values for more as one element on the page (see id='apri'
for all buttons).
It seems to me that you should just use predefined formatter: "actions"
with the option formatoptions: { editformbutton: true }
. See the demo as an example. Other options of editGridRow
can be specified depend on the version of jqGrid and the fork which you use. In case of usage free jqGrid you can specify all options inside of formEditing
parameter. See the wiki article for more details. In case of usage old version of jqGrid you can use the options inside of editOptions
property of formatoptions
(see the documentation).
Free jqGrid allows you to create custom button in formatter actions. See the answer.
If you really need to use custom formatter then I would recommend you to read the answer and this one, which shows the usage of beforeSelectRow
callback.