jqGrid editurl value for local editing?

2019-03-30 23:31发布

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?

标签: jqgrid
3条回答
Root(大扎)
2楼-- · 2019-03-31 00:03

editurl must be 'clientArray' in your case.

查看更多
你好瞎i
3楼-- · 2019-03-31 00:04

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

or

here

查看更多
倾城 Initia
4楼-- · 2019-03-31 00:16

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.

查看更多
登录 后发表回答