How to persist data when edit fails in jqgrid -
i perform jqgrid edit via formatter actions. , when edit validations fails in server , display errors user, want remain in edit mode , save user entered data. possible. please help.
you should utilize restoreaftererror: false
alternative of inline editing. recommend set alternative changing defaults of inline editing:
$.extend($.jgrid.inlineedit, { restoreaftererror: false });
alternatively can set restoreaftererror
in formatoptions
:
formatter: "actions", formatoptions: {restoreaftererror: false, keys: true, ...}
jqgrid jqgrid-formatter jqgrid-inlinenav
No comments:
Post a Comment