Add row in jqgrid

烈酒焚心 提交于 2019-12-21 21:08:04

问题


I am using jqGrid and it's working fine.

I have a scenario where I have to add a blank row in jqGgrid instead of a popup to add the row.

How can I do it?


回答1:


You can use for example addRowData. Look at jQGrid, how to add a new row inside the grid, not via a modal?.

Probably the answer Spreadsheet-like inline editing in jqGrid and the demo http://www.ok-soft-gmbh.com/jqGrid/ClientsideEditing5.htm could help you also.




回答2:


from the jqgrid demo page, i see this:

jQuery("#list7").jqGrid('setGridParam',{rowNum:15}).trigger("reloadGrid");

see: http://trirand.com/blog/jqgrid/jqgrid.html manipulating -> set methods



来源:https://stackoverflow.com/questions/3751499/add-row-in-jqgrid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!