Hi,
Currently I am using the JQGrid in my project, and one of the requirements was use inline editing. As my datasource is an JSON, I was using datatype='clientSide' combined with cellsubmit='clientArray' so this both options allow me use the inline editing – I can update cell data with no problem
But the main problem was when I was trying to add a new line to the grid — first I tried to use the Add navGrid button but I was getting error 'cause this button tries to post the new cell data to an URL — which wasn't set up, since I am using only and JSON array (just for your information, I am populating this array with an ASP.NET Repeater component). So I got stucked in this error, until I read your JQGrid source code – when I realized that I could download the source edition and do my changes, so I could use the Grid totally from Client Side.
And that's what I've done. I downloaded the source of version 3.6.3 and added some lines in the file grid.formedit.js – at function postIt()
At line 793, you try to get the URL. If there's not URL set, you set false to the ret[0] (that has the return value) and show the error message. See below the code snippet:
gurl = rp_ge.url ? rp_ge.url : $($t).jqGrid('getGridParam','editurl');
if(ret[0]) {
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top