jqGrid Insert New Row Custom

╄→гoц情女王★ 提交于 2019-12-22 15:37:53

问题


I have looked around and have yet to find a decent answer.

I wish to add a new row into my grid from my own custom button, without using their add buttom or edit forms.

Something like:

$("#grid").jqGrid('insert',{"id","col1","col2"});

I want to be able to programatically insert new rows and not have to use their form.

Any help would be greatly appreciated.

Regards, Byron


回答1:


Why do you not use addRowData method (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods)? Do you want do something more as to add the data?



来源:https://stackoverflow.com/questions/3166293/jqgrid-insert-new-row-custom

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