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
setSelection problem
27/08/2009
15:55
Avatar
rekna1
Member
Members
Forum Posts: 9
Member Since:
21/07/2009
sp_UserOfflineSmall Offline

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?

27/08/2009
16:14
Avatar
rekna1
Member
Members
Forum Posts: 9
Member Since:
21/07/2009
sp_UserOfflineSmall Offline

Solved it... It was an error in my code, when the second grid is reloaded (because of a change in row selection in the first), I needed to clear the id of the selected row of the second grid, because this would not be valid anymore.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information