RadComboBox binding to ObservableCollection<string>

3 posts, 0 answers
  1. arthurd
    arthurd avatar
    18 posts
    Member since:
    Aug 2007

    Posted 11 Aug 2010 Link to this post

    Can RadComboBox bind directly  to ObservableCollection<string> ?

    I don't know what to use for DisplayMemberPath.

    I have no problems using it in normal way with ObservableCollection<ObjectX> for example where ObjectX has public string property like DisplayText then I would set DisplayMemberPath="DisplayText" and all is well.

    But I just need simple string list and would like to avoid making extra class if not necessary.

  2. arthurd
    arthurd avatar
    18 posts
    Member since:
    Aug 2007

    Posted 12 Aug 2010 Link to this post

    Now I feel dumb. I thought I tried this before but I guess I did not. When binding to ObservableCollection<string> just leave out the DisplayMemberPath all together and the control does the right thing.
  3. Konstantina
    Konstantina avatar
    2332 posts

    Posted 12 Aug 2010 Link to this post

    Hi arthurd,

    We are glad that you have resolved the issue by yourself.

    For more information about RadComboBox you can refer to our online documentation: http://www.telerik.com/help/silverlight/radcombobox-populating-with-data-overview.html

    If you have any other inquiries please feel free to contact us again.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top