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.
精彩评论