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
Populating a grid with dynamic select values
23/03/2011
02:50
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

I have read through several posts looking for an answer and I can't seem to find one.  I have a grid where the select values in column one determine the select values that appear in column two.  I can change the values when editing (I use inline editing) but I can't figure out how to properly *populate* each row with the different select values as the grid is rendered.  For example, if the grid is:

Animal Type       Name

Cow                   <select values would be Jersey, Gurnsey, etc >

Bird                    <select values would be Swallow, Robin, Eagle, Seagull, etc >

Dog                   <select values would be Retriever, Hound, Mutt, etc >

How do I get different select lists each row of the same column?

Again, I know how to dynamically populate column two when column one changes but how do I put *different* select lists into each row of the *same* column as the grid is rendered?   Is there a row complete event that triggers as each row completes? Or, an alternative on how to properly populate the column with different select list?

Thanks,

Pete

23/03/2011
03:30
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

Ah! afterInsertRow was what I was looking for but I still have an issue.  The event is triggered, it looks like the column is updated with the HTML for the select but when the grid is complete, the select values aren't appearing in the column and I think it is because the select value is "matched" to the cell contents when the select was initially created (empty).

Still sorting through this and could use a pointer or two to keep moving....

Pete

23/03/2011
05:28
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

Definitely not making progress here.  I can get the column/cell contents to change to the new select values by binding a change event to the selector cell but I cannot figure out how to set those column/cell select values as the grid is populated.  I tried setCell but the new HTML select values don't appear.

HELP!

Pete

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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