jqGrid Custom Edit Dialog

后端 未结 3 1867
轮回少年
轮回少年 2021-02-08 13:24

I am working to an application that uses jqGrid. The problem is that the edit dialog that should appear at row edit must have a specific layout. So I would prefer to load it via

3条回答
  •  醉话见心
    2021-02-08 13:42

    You can use editfunc or addfunc option of the navGrid. If for example editfunc are defined then instead of editGridRow jqGrid will be called editfunc with the id of selected row as the parameter.

    Alternative you can use custom button (see this answer as an example).

    To modify data in the table after ther custom edit dialog you can use setRowData function.

    UPDATED: If you need just make some modification of layout of the edit dialog you can use beforeShowForm for th modifications.

提交回复
热议问题