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

Cannot populate a RadDropdownlist

2 Answers 245 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Kerry
Top achievements
Rank 1
Kerry asked on 10 Feb 2012, 08:22 AM
Hello, 

I am using a RadDropdownList but for some reason I cannot get the dataset's table to bind to the Raddropdownlist.  However when I use a standard windows combobox the data binds ok.

//This doesn't work with the RadDropdownList..."Lookup" is the name of the datatable within the dataset.
DataSet ds = oLkp.GetLookupValues("matterTypeId, matterType", "tblMatterTypes", "matterType");
 this.cmbMatterType.DisplayMember = "Lookup.matterType";
 this.cmbMatterType.ValueMember = "Lookup.matterType";
 this.cmbMatterType.DataSource = ds; 

//Same code using a standard winform combobox, this works fine.
this.comboBox1.DisplayMember = "Lookup.matterType";
this.comboBox1.ValueMember = "Lookup.matterTypeId";
this.comboBox1.DataSource = ds;

Is there an extra step to using these new controls or a design time property that must be set....I know this control replaces the RadCombobox.  Using 2011.3.11.1116

Thanks,

Kerry

2 Answers, 1 is accepted

Sort by
0
Kerry
Top achievements
Rank 1
answered on 14 Feb 2012, 03:35 AM
Not sure why, but I switched the datasource from a dataset to a collection List<> of business objects...this seems to populate the dropdownlist.  Not sure why, I know the dataset is ok since it populates a standard winform combobox.

Kerry
0
Boryana
Telerik team
answered on 14 Feb 2012, 03:42 PM
Hello Kerry,

Thank you for contacting us.

I confirm this is an issue with data binding process of RadDropDownList. I have added this issue to our Public Issue Tracker under ID 9736. To subscribe for its status updates please follow this link

This issue is with high priority in our TODO list and we will do our best to resolve it for the next Service Pack. Thank you for reporting it and please excuse us for the caused inconvenience. Your Telerik points have been updated.

Regards,
Boryana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
DropDownList
Asked by
Kerry
Top achievements
Rank 1
Answers by
Kerry
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or