RadCombobox - wincontrols

Thread is closed for posting
2 posts, 0 answers
  1. Ragupathi
    Ragupathi avatar
    41 posts
    Member since:
    Jul 2008

    Posted 23 Jul 2008 Link to this post

    How to bind IDictionary as datasouce for RadCombobox controls. I am getting error like Bad datasource for complex binding

    radcombobox1.Datasource = Idictionary object.;
    radcombobox1.Displaymember = "Value";
    Thanks in advance.
  2. Dimitar Kapitanov
    Dimitar Kapitanov avatar
    632 posts

    Posted 24 Jul 2008 Link to this post

    Hello Ragupathi,

    The exception message is somewhat unclear and we changed it to "Complex DataBinding accepts as a data source either an IList or an IListSource." RadComboBox resembles closely the binding behavior of the .NET 2.0 combo box control, and that is why you are able to bind only descendants of the IList and IListSource interfaces.

    Other than that you really need an IList implementation to have successful binding even with our RadGridView control. The other vendors and the .NET 2.0 standard components require IList as well.

    All the best,
    Dimitar Kapitanov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top