Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You need add <code>serializeRowData</code> callback in the same way like you added <code>serializeGridData</code>. In the same way you need add <code>ajaxRowOptions</code> which looks like <code>ajaxGridOptions</code>. The options defines option of <code>$.ajax</code> executed during editing of rows:</p> <pre><code>ajaxGridOptions: { contentType: 'application/json; charset=utf-8' }, ajaxRowOptions: { contentType: 'application/json; charset=utf-8' }, serializeGridData: function (postData) { return JSON.stringify(postData); }, serializeRowData: function (postData) { return JSON.stringify(postData); } </code></pre> <p>You should remove unneeded second <code>$(document).ready(function()</code> handler registered inside of <code>$(document).ready</code>. I mean that the code</p> <pre><code>jQuery(document).ready(function($) { var lastsel; $(document).ready(function() { loadGrid(); }); function loadGrid() { jQuery("#tblWOR").jqGrid({ ... }); jQuery("#tblWOR").jqGrid('navGrid', "#divWOR", { edit: false, add: false, del: false }); } }); </code></pre> <p>should be replaced to</p> <pre><code>jQuery(document).ready(function($) { var lastsel; $("#tblWOR").jqGrid({ ... }).jqGrid('navGrid', "#divWOR", { edit: false, add: false, del: false }); }); </code></pre> <p>I removed <code>loadGrid</code> function additionally, because the function <em>create</em> the grid. The function could be called <em>only once</em>. Which sense is to define some code in a function if the function could be called only once?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload