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
when does loadComplete fire?
14/10/2010
00:34
Avatar
Octavient
Member
Members
Forum Posts: 9
Member Since:
26/08/2010
sp_UserOfflineSmall Offline

I believe this might be a bug:  the loadComplete event is firing on all sort and paginate clicks, when the documentation seems to suggest that it shouldn't--it says that the gridComplete will fire on sorts, paginates, etc., but the loadComplete says "This event is executed immediately after every server request."  If I set the script to use the "loadonce" feature, it seems as though the loadComplete should NOT fire on sorts, paginates, etc--just ONCE after the initial load from the server.  

Am I reading this wrong?  Or is this actually a bug?

The code that I think is relevant is pasted below.  I've tried 3.7.2 and beta 3.8.  

jQuery("#list3").jqGrid({

   url:'ajax_server.asp',

datatype: "xml",

   colNames:['','Column1','Column2'],

   colModel:[

   {name:'Column1',index:'Column1',sortable:true,sorttype:'int'},

   {name:'Column2',index:'Column2',sortable:true, sorttype:'text'},

   ],

rowNum:10000,

viewrecords: true,

loadonce: true,

loadComplete: function(){

alert('init loadComplete');

},

caption: "my grid"

});

02/12/2010
20:29
Avatar
SomethingNew
Member
Members
Forum Posts: 8
Member Since:
26/08/2010
sp_UserOfflineSmall Offline

I concur with this report, when should the loadComplete event fire in a loadonce table?  There seems to be too many calls to it, and makes it seem almost redundant with gridComplete.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
42 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