Cannot populate a RadDropdownlist

3 posts, 0 answers
  1. Kerry
    Kerry avatar
    61 posts
    Member since:
    Nov 2008

    Posted 10 Feb 2012 Link to this post


    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


  2. Kerry
    Kerry avatar
    61 posts
    Member since:
    Nov 2008

    Posted 13 Feb 2012 Link to this post

    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.

  3. Boryana
    Boryana avatar
    330 posts

    Posted 14 Feb 2012 Link to this post

    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.

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top