Forum
22:42
13/01/2011
I've been working with the grid for quite some time now and I came across a case where I'm realoading the grid based on information that is typed into a text box. Kind of like an auto complete box.
The issue is with the events. gridComplete and loadComplete
Your documented definitions are backwards to me.
gridComplete: "This fires after all the data is loaded into the grid and all other processes are complete. Also the event fires independent from the datatype parameter and after sorting paging and etc."
loadComplete: "This event is executed immediately after every server request.
data Data from the response depending on datatype grid parameter"
Anyone reading that would think gridComplete is the last event fired, but I know it's not and that is documented.....
My big issue is with the way the "loadComplete" event is handled. That event should be the last peice of code firing after endReq() is called. Or there needs to be another event which is the true "ALL GRID PROCESSES COMPLETED" event. I say this because I need to know when I can trigger another reload of the grid and since the reload can't happen while the hDiv.loading is true, my grid breaks.
The easy fix so there aren't breaking changes would be to add a final event. I'm fixing my problem temporarily by putting a very brief timeout on the code that is called on the loadComplete event, but I dont' like this solution. I don't want to modify the jqgrid files, because I don't want any future updates to break this special instance.
This is a good plugin that could be great.
Most Users Ever Online: 715
Currently Online:
33 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