开发者

jqGrid data to HTML5 localStorage

Is there a way to get back the jqGrid data to HTML5 local开发者_如何学运维Storage after an edit in place?


If you set the editurl to the string "clientArray", you can process the data locally in the aftersave function. For example:

$('#table').jqGrid('saveRow', 1, $.noop, 'clientArray', {}, function($t, rowid) {
    // save to local storage here
}

$t in this instance appears to be the table object itself. The source for saveRow() is in src/grid.{cell,inline,form}edit.js.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜