Forum


15:55

21/07/2009

I have a gridComplete event, which sets the selection using setSelection. In simple scenarios this works just fine. But I have a more complex scenario, where this causes a second grid to fail during loading (the loadtext of the second grid , does not disappear). After that, selecting a row in the first grid does not make the second grid reload anymore. Its the setSelection on the second grid that seems to fail.
What I found is, that if I execute setSelection with one second delay (using the setTimeout function), everything works fine ( I copied the idea from the refresh button event handler). However, the delay is quite annoying, I was hoping the gridComplete would be the correct time and place to use the setSelection.
Reloading of the second grid is done by using the onSelectRow event of the first grid. I don't understand why the delay is needed.
It seems, a javascript error is triggered, when I use the solution without the delay. The error is : this[0].innerHTML is undefined, somewhere in jquery code. The call stack reveals its origin is from the grid.setSelection command in my gridComplete event.
I can not provide a simple example, because it part of a complex web application, where jqrid scripts are generated through server side helper functions. Maybe some hints in which direction I need to look, to solve the problem?
Most Users Ever Online: 715
Currently Online:
34 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