Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Hi you can get selected row by using the <code>jqGrid</code> api</p> <pre><code>$.subscribe('delete', function(event,data) { var rowid = $("#gridedittable").jqGrid(‘getGridParam’,'selrow'); $("#gridedittable").jqGrid(‘delRowData’,row_id); } </code></pre> <p>This assumed you set the <code>multiselect</code> param to <code>false</code>.</p> <p>For <code>multiselect</code> , you have to use the option <code>selarrrow</code> instead.</p> <p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods" rel="nofollow">http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods</a></p> <p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options" rel="nofollow">http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options</a></p> <p>And the grid setting should be like</p> <pre><code> &lt;s:url var="remoteurl" action="jsontable"/&gt; &lt;sjg:grid id="gridtable" caption="Customer Examples" dataType="json" href="%{remoteurl}" pager="true" gridModel="gridModel" rowList="10,15,20" rowNum="15" rownumbers="true" &gt; &lt;sjg:gridColumn name="id" index="id" title="ID" key="true" sortable="false"/&gt; &lt;sjg:gridColumn name="name" index="name" title="Name" sortable="true"/&gt; &lt;sjg:gridColumn name="country" index="country" title="Country" sortable="false"/&gt; &lt;sjg:gridColumn name="city" index="city" title="City" sortable="false"/&gt; &lt;sjg:gridColumn name="creditLimit" index="creditLimit" title="Credit Limit" formatter="currency" sortable="false"/&gt; &lt;/sjg:grid&gt; </code></pre>
 

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