Monday, 15 July 2013

How to persist data when edit fails in jqgrid -



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:

class="lang-js prettyprint-override">$.extend($.jgrid.inlineedit, { restoreaftererror: false });

alternatively can set restoreaftererror in formatoptions:

class="lang-js prettyprint-override">formatter: "actions", formatoptions: {restoreaftererror: false, keys: true, ...}

jqgrid jqgrid-formatter jqgrid-inlinenav

No comments:

Post a Comment