Home › Forums › Guriddo jqGrid JS › Help › Sort the data locally each time its obtained from server
Hello,
My table obtains and refresh the JSON data from the server – datatype: 'json' – but it can't be sorted on it.
Use loadonce:true – see docs
Regards
Tony
Hello Tony,
If I use loadonce:true de data only is obtained from the server once.
Try to use gridComplete method where you can call sortData method – it is exactly what you want – do not use loadonce.
Finally the solution was the following code in the gridComplete or loadComplete method:
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS