Forum


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"
});
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66