开发者

Add row in jqgrid

开发者 https://www.devze.com 2023-01-17 07:28 出处:网络
I am using jqGrid and it\'s working fine. I have a scenario where I have to add a blank row in jqGgrid instea开发者_开发问答d of a popup to add the row.

I am using jqGrid and it's working fine.

I have a scenario where I have to add a blank row in jqGgrid instea开发者_开发问答d of a popup to add the row.

How can I do it?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消