Home › Forums › Guriddo jqGrid JS › Help › Issue in getting the grid to work…
I posted this on the blog before I noticed you had a forum as well, so I do apologise for crossposting on two locations!!!
Hello,
Thanks. everthing will work also if you configure the jsonReader.
More you can find here.
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#json_data
Maybe you will need only to set in the reader – repeatitems:false and your grid will work.
Best Regards
Tony
Thanks for the fantastically fast response!!!
Try
jsonReader:{repeatitems:false, id:”0″}
regards
And again me,
or set in colModel key:true property
i.e
$(“#mygrid”).jqGrid({
..
colModel:[
{name:'id',index:'id', width:60, sorttype:”int”, key:true}
],
jsonReader: {repeatitems:false},
…
});
Regards
Hi Tony,
I tried it, but it doesn't seem to be working either.
I do in fact repeat the item names in my data returned from PHP, but I think I'm positioning something in the wrong location of the array…
This is the latest version of the javascript code I tried:
jQuery(“#grdListAllLedgerAccount0_jqdg”).jqGrid(
I think you make the same error.
In you case with this configuration you should set in jsonReader – repeatitems:false.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS