This is a migrated thread and some comments may be shown as answers.

problem with GridDropDownColumn

1 Answer 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 11 Nov 2008, 03:36 PM
In my grid I have a drop down column

<telerik:GridDropDownColumn UniqueName="ddlArtistType" DataField="ArtistType" ListTextField="ArtistType" ListValueField="ArtistType" 
                                        ListDataMember="ArtistType" HeaderText="Artist Type" DropDownControlType="RadComboBox" /> 



When I run the page and add a new row, the items in the drop down list selection are taken from the underlying grid datasource not its own separate datasource (so many items in the dropdown are dupliacted)

I need to assign a totally separate datasource in order to pick one of the items to enter into the underlying column in the grid

Using the above method doesnt seem to make sense since when would you ever use the grid as a datasource for the dropdown, they are usually a totally different dataset

Ive tried this
<telerik:GridDropDownColumn UniqueName="ddlArtistType" DataField="ArtistType" HeaderText="Artist Type" DropDownControlType="RadComboBox" /> 



 and trying to populate in the ItemDataBound event, but the row always shows up empty

So how can I use a GridDropDownColumn and assign its own datasource at runtime in my code behind ?

** Im not using a datatable as the grid datasource, im using a custom collection so ListDatamember would have no effect

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Nov 2008, 06:01 AM
Hello Mark,

You can go through the following link to understand how to customize the GridDropDownColumn.
Customize/Configure GridDropDownColumn

Thanks
Princy.
Tags
Grid
Asked by
mww
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or