Can't refresh grid after deleting row
<p>I'm using inline editing and I have a custom delete button on the inline nav panel that deletes the row from the database. I have a grid refresh var (that I got from one of Oleg's responses on here) that works fine for add's and edit's but I can't get it to work on my delete button. Here's the code for the add/edit functions which refreshes fine:</p>

<pre><code>    jQuery("#list").jqGrid("navGrid", '#pager', {add:false, edit:false, del:false, search:false, refresh:false});   
jQuery("#list").jqGrid("inlineNav",'#pager',{add:true, addicon:"ui-icon-plus", del:false, reloadAfterSubmit:true, edit:true, editicon:"ui-icon-pencil", search:false, addParams: {position: "last", addRowParams: editOptions}, editParams: editOptions});
</code></pre>

<p>Here's the code for my delete button which doesn't work:</p>

<pre><code>    jQuery("#list").jqGrid("navButtonAdd",'#pager',{buttonicon:'ui-icon-trash', onClickButton:function(){$.get('delgridrow.php?id='+detailid);}, reloadAfterSubmit:false, afterSubmit: editOptions, caption:'', position:'last'});
</code></pre>

<p>And here's the var that I got from Oleg that works for the adds/edits:</p>

<pre><code>var editOptions = {
keys: true,
successfunc: function () {
    var $self = $(list);
    setTimeout(function () {
        $self.trigger("reloadGrid");
    }, 50);
        }
 };
</code></pre>

<p>I've tried changing reloadAfterSubmit to true but that doesn't help. Any suggestions would be appreciated.</p>