开发者

How to manually add row data to jqGrid?

I have a jqGrid table and it works well. I use Spring and communicate everything via REST. I want to add adding row abili开发者_C百科ty to my jqGrid. However I don't want to use default button of the jqGrid. These are my variables for adding a new record:

userName
password
mail
admin

When a user click a button on my page, a popup appears and there writes that field names. I want when user clicks add button at that popup page, a new user should be added to jqGrid and new data should be send to the server of course(to REST URL.)

How can I do that?


You can use addfunc to implement you custom behavior of the Add button. In the case you will have to do almost all work yourself. You should send the data to the server yourself with respect of jQuery.ajax for example and reload the grid after it or add the new row to the grid with respect of addRowData.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜