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
$("#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});
});
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.
I'm gonna post the formatter for the button, since here you can see the usage of sessionStorage
function bottone (cellvalue, options, rowObject)
{
return "<div style='margin-bottom: 5px; margin-top: 5px;'>" +
"<button id='apri' onclick="+sessionStorage.setItem("idProdotto", rowObject.id)+"> Apri </button></div>";
}