开发者

jqGrid editurl value for local editing?

I have a jqGrid set up with local data. I'm not sending 开发者_高级运维any data to the server until the entire form is filled out. My problem is, when a user adds/edits a row, jqGrid attempts to post the results to the server right then.

I tried leaving out the "editurl" attribute from the jqGrid invocation, but this results in a "No URL is set" error when the user clicks the "submit" button on the popup form for adding/editing records.

I tried putting in a single hash "#" for the editurl value, but this also fails.

Any thoughts?


editurl must be 'clientArray' in your case.


Set editurl:'url', cellsubmit:'clientArray', cellEdit: true

or

here


See this for a complete example of jqgrid local data.

local edit on jqgrid

Change your initial data and your columnmodel, and you will be almost done.

It's not a oneline solution, but, seems this is the way to cope local editing.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜