|
Rank: Newbie Groups: Member
Joined: 8/24/2009 Posts: 6
|
Hello,
I use a grid (like Custom Column demo in your example) and i wish do a column with a dropdownlist. BUT this dropdownlist don't contains the same elements foreach rows. Is it posssible to do this ? And if so how?
Thanks for your help !
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This is possible but would require some additional coding. The key is you will need to dynamically fill the drop down list with JavaScript instead of from code behind directly. If you need the list items to come from the server side, you can add an additional StaticColumn, then use that column to store the list data and set the column's Visible to false so that user won't see it. You would then use JavaScript to get the data in that column and rebuild the drop down with JavaScript in your CustomColumns' ClientSideBeginEdit handler.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/24/2009 Posts: 6
|
Thanks, it's work !! It's complicate to implemented but it's work ... Thanks very much
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great. Thanks for the update!
|
|