Forum
13:54
10/08/2009
Hello Tony,
one common problem in the usage of loadonce:true is unsorted data returned from the server. Sometime (in case of usage jsonp to get data from the foreign server) it's really impossible to force sorting of data on the server.
So it would be very helpful to have an option to sort the data like addLocalData do this in case of usage of loadonce:true. The exact implemeltation could be different.
The only current way to implement local sorting of data return from the server at the first time is reloading of the grid directly after loading from the server. The problem is that the exact implementation is a little tricky and slowly as it could be. One have to trigger reloadGrid inside of loadComplete but one need to do this only in case of datatype not equal to "local". I don't include here the full implementation. The idea is just to provide simple standard way to make the sorting directly at the first loading.
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
17 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66