Welcome Guest Search | Active Topics | Sign In | Register

Insert DropDownList different foreach rows in a Grid Options
maxime
Posted: Wednesday, October 14, 2009 6:16:28 AM
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 !
eo_support
Posted: Wednesday, October 14, 2009 7:23:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,200
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
maxime
Posted: Wednesday, October 14, 2009 12:38:56 PM
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
eo_support
Posted: Wednesday, October 14, 2009 12:52:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,200
Great. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.