Add row in jqgrid
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
精彩评论