Jqgrid Open another page on clicking a custom edit button

前端 未结 1 1576
南方客
南方客 2021-01-27 12:23

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         


        
相关标签:
1条回答
  • 2021-01-27 12:47

    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.

    0 讨论(0)
提交回复
热议问题