SIlverlight RadGridViewComboBox Binding

2 posts, 0 answers
  1. Adam
    Adam avatar
    16 posts
    Member since:
    Oct 2010

    Posted 21 Oct 2010 Link to this post




    Hi all,

    I have a view model class that currently has one property 'RiskItemTypeList'.

    Inside my Child Window control, i have a Silverlight Tab Control (SL Toolkit).
    Tab1 hosts a Grid which among other things hosts a Rad Grid View.

    In XAML i am trying to databind a GridViewComboBoxColumn to the View Model property exposed, with no luck!

    Can anyone see what i am missing? I am sure it an issue of scope, but not sure how to do this properly in XAML!



    <viewmodel:RiskItemViewModel x:Name="ViewModel"/>







    <telerik:GridViewComboBoxColumn Header="Type" ItemsSource="{Binding RiskItemTypeList, Source= {StaticResource ViewModel}}">



    If i use the same ItemsSource Binding syntax on a combo box outside the grid view, everything works as expected.

    Any help appreciated.






  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 26 Oct 2010 Link to this post

    Hello Adam,

    What is the exact problem? Does the combobox is empty when you go in edit mode? Or, the cells are empty in view mode? If so, you need to set the DisplayMemberPath property of the combobox column as shown here.

    Kind regards,
    Veselin Vasilev
    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 R3 2016 release webinar banner
Back to Top