Forum
17:20
22/06/2011
Hello
I am new to jqGrid, but I already like it.
I think I found a bug in 4.1.0 version that I currently use.
My scenario:
1. Create simple grid with sortable columns and loadonce: true.
2. Using extra button reload grid with following code (load completely new data from the server):
jQuery('#mygrid').setGridParam({datatype:'json',loadonce:false}).trigger("reloadGrid");
jQuery('#mygrid').setGridParam({datatype:'local',loadonce:true});
3. New data on GUI displayed succesfully.
4. Try to sort data using one of the sortable column. OLD DATA displayed.
Also I tried to use
jQuery('#mygrid').jqGrid('clearGridData');
before reloading. But using this code my grid displays endless 'Loading…' while trying to sort the data.
Looks like some kind of grid cache is used.
Could you please clarify, is it a bug or maybe I missed something ?
Thanks in advance.
14:51
22/06/2011
Hello All,
Could someone please clarify how to completely (with cache cleaning) reload data in grid with loadonce: true ?
Looks like
jQuery('#mygrid').setGridParam({datatype:'json',loadonce:false}).trigger("reloadGrid");
jQuery('#mygrid').setGridParam({datatype:'local',loadonce:true});
does not work 🙁 this code modifies data on GUI, but some kind of cache still contains old data.
Most Users Ever Online: 715
Currently Online:
55 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