jqGrid Insert New Row Custom

2019-05-26 18:46发布

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条回答
Ridiculous、
2楼-- · 2019-05-26 19:29

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?

查看更多
登录 后发表回答