JQ Grid sorting integers
Can anyone please tell me how to sort integers/numbers in JQ grid. the regular sorting gives a distorted order.
Hi i got it all done when i use loadonce=true and sorttype = 'int'. But i cant use loadonce, since i need to reload the grid several times for my purpose.
Can anyone say how to开发者_高级运维 do it without using loadonce??
Thanks, Devan
If you use datatype:'json'
or datatype:'xml'
, then the server is responsible for the data sorting. The sidx
and the sord
parameters which will be send as the part of request to the server describes which sorting should use the server.
If you want to implement client side sorting and paging of data you can use loadonce:true
jqGrid parameter. In the case you should define sorttype property (having default value 'text') which describes the data type from the column. After the first data loading the datatype
of the jqGrid will be automatically changed to 'local'
and the sorting, paging and filtering/searching of data will be implemented locally by jqGrid itself.
精彩评论