开发者

jqGrid Insert New Row Custom

开发者 https://www.devze.com 2023-01-06 07:18 出处:网络
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.

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


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?

0

精彩评论

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

关注公众号