开发者

jqGrid data to HTML5 localStorage

开发者 https://www.devze.com 2023-03-11 21:25 出处:网络
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 a

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

精彩评论

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