Jqgrid Open another page on clicking a custom edit button
<p>I have a JQGrid with a button for each row, clicking the button must open a small dialog box looking window containing a edit.jsp page. I've tried using </p>

<pre><code>$("#list").on("click", "#apri", function(){                 
            var id =sessionStorage.getItem("idProdotto");
            $("#list").jqGrid('editGridRow', id, {height:280,url:"http://localhost:8080/SaGE2/prodotti/edit" ,reloadAfterSubmit:false});                
        });
</code></pre>

<p>but the URL is completely ignored, using it without the URL is out of question since the normal dialogbox that opens up using editGridRow has the input boxes, but it doesn't load the values of the row where the button's at.</p>

<p>I'm gonna post the formatter for the button, since here you can see the usage of sessionStorage</p>

<pre><code>function bottone (cellvalue, options, rowObject)
        {          
           return "&lt;div style='margin-bottom: 5px; margin-top: 5px;'&gt;" +  
           "&lt;button id='apri' onclick="+sessionStorage.setItem("idProdotto", rowObject.id)+"&gt; Apri &lt;/button&gt;&lt;/div&gt;";

        }
</code></pre>