Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
grid reload bug
22/06/2011
17:20
Avatar
elf803
New Member
Members
Forum Posts: 2
Member Since:
22/06/2011
sp_UserOfflineSmall Offline

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.

29/06/2011
14:51
Avatar
elf803
New Member
Members
Forum Posts: 2
Member Since:
22/06/2011
sp_UserOfflineSmall Offline

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.Frown

18/11/2011
19:56
Avatar
ramoreez
Indonesia
New Member
Members
Forum Posts: 2
Member Since:
18/11/2011
sp_UserOfflineSmall Offline

jQuery("#tbl_view").jqGrid('navButtonAdd',"#pager",{caption:"Clear",title:"Clear Search",buttonicon :'ui-icon-refresh',
    onClickButton:function(){
        mygrid[0].clearToolbar()
    }
});
Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information