I'm having a problem where I set the data in a cell (that works fine) and then sort the grid. For some reason when I sort the grid the data in the cell reverts back to what it was before I called setCell. This worked fine prior to jqgrid 3.7, so I believe it is an issue that was introduced as part of the local changes.
My guess is that there is an internal array jqgrid maintains to do local sorting. When I call setCell, the grid is updated, but the internal array is not updated. When the sort happens it works with the internal array which resets the cell's data.
Does that sound right? Is there a way to update the internal array (if there is an internal array)?
$(“#myGrid”).jqGrid('setCell', rowId, 'typesort', data.TYPESORT, '', {title: ''});
$(“#myGrid”).jqGrid('setGridParam', {datatype:'local'});
$(“#myGrid”).jqGrid('sortGrid', 'framesort', true);
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top