Note that there are some explanatory texts on larger screens.

plurals
  1. POI need to know the callback when I edit a jqGrid row
    primarykey
    data
    text
    <p>I am implementing jqGrid and need a call back when I edit row, for add and delete, gridComplete is getting fired but when I edit the row none of the events are fired. I have tried many as given in the documentation of jqGrid. Below is the code:</p> <pre><code>tableID.jqGrid({ // scroll:1, altRows:true, // ajaxGridOptions:{async:false}, data:clientSideData, datatype: "local", //mtype: reqType, colNames:columnName, colModel :columnModel, pager: '#pager_'+wargs.uuid, rowNum:rowNumber, rowList:listOfRow, sortname: sortByCol, sortorder: sortOrder, viewrecords: true, caption: titleGrid, jsonReader: { repeatitems : false}, gridview:true, //cellsubmit:'clientArray', //cellEdit: editable, onSelectRow: function(id){ if(editable == "true"){ if(id &amp;&amp; id !== lastsel){ jQuery('#list').jqGrid('restoreRow',lastsel); jQuery('#list').jqGrid('editRow',id,true); lastsel=id; } } }, // loadonce: true, loadBeforeSend : function(xhr) { dataField.val(getRowDataAsJson());console.log(dataField.val()); }, gridComplete : function() { dataField.val(getRowDataAsJson());console.log(dataField.val()); }, loadError : function(xhr,status,error){ dataField.val(getRowDataAsJson());console.log(dataField.val()); }, editurl: wargs.args.dummyURI }); tableID.jqGrid('navGrid',"#pager_"+wargs.uuid, {edit:editable,add:editable,del:editable}, {closeAfterEdit: editable,closeOnEscape:editable,reloadAfterSubmit:editable}); </code></pre> <p>Please don't bother about the values like editable and wargs.uuid, it was set not mentioned here as not required.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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