Binding from RadGridView to RadComboBox

2 posts, 0 answers
  1. George
    George avatar
    14 posts
    Member since:
    Sep 2010

    Posted 18 Feb 2011 Link to this post

    I have a grid that shows languages. When an item in the grid is selected I need to show that information in a detail view (Master/Detail). I cannot get the items to show up in the combobox tough

    My combobox xaml looks like this.


    <telerik:RadComboBox Grid.Row="0" Grid.Column="1" Width="200" HorizontalAlignment="Left" EmptyText="--Select Language" DisplayMemberPath="DisplayText" ItemsSource="{Binding LanguageList, Mode=TwoWay}" SelectedItem="{Binding ElementName=LanguageGrid, Path=SelectedItem.LanguageLookupValue, Mode=TwoWay}"></telerik:RadComboBox>

    someone on stackoverflow said to use SelectedValue over selected item. I have always used selectedItem when using comboboxes but usually im binding to some properties in my view model and its pretty straight forward. This seems like it should work but I can seem to get it right.

    thanks
  2. George
    Admin
    George avatar
    1332 posts

    Posted 23 Feb 2011 Link to this post

    Hi George,

    Thank you for contacting us.

    Could you please give us more information about you scenario? Attached you can find a sample that demonstrates how to integrate RadGridView with RadComboBox. I hope this helps.

     Please do not hesitate to contact us if you require any further information.

    Best wishes,
    George
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft banner
Back to Top