How to - each RadComboBox in column inside RadGridView with unique data

4 posts, 1 answers
  1. Dominik
    Dominik avatar
    2 posts
    Member since:
    Jul 2010

    Posted 29 Jul 2010 Link to this post

    Hi there. Here is what I want to achieve:

    I have RadGridView with two columns - first contains ordinary text (GridViewDataColumn), second is a GridViewComboBoxColumn. Each row consist of property (first column) and possible values (displayed in comboBox in second column) which vary for each property. For example:

    Property: border
    Possible values: solid, dash

    Property: font-family
    Possible values: arial, times new roman

    The problem is that I can set data source for whole column but not for individual ComboBoxes - or at least I don't know these controls good enough.

    Data is bound correctly, but the only thing missing is separate data source for each comboBox. How to achieve that?

    I'm using Silverlight 4, Telerik controls Q1 2010 SP2

  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 02 Aug 2010 Link to this post

    Hi Dominik,

    You may use the ItemsSourceBinding property of the combo column . This way you can tell it to get its ItemsSource form the font-family property of your business object for example.

    In case you have troubles implementing this, just let me know and I will gather a small working example for you.

    Regards,
    Pavel Pavlov
    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
  3. DevCraft banner
  4. Dominik
    Dominik avatar
    2 posts
    Member since:
    Jul 2010

    Posted 04 Aug 2010 Link to this post

    Well, that example would be very useful.
  5. Answer
    Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 09 Aug 2010 Link to this post

    Hi Dominik,

    Please find the example attached.

    Greetings,
    Pavel Pavlov
    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