ComboBox and Hiearchical Data

3 posts, 0 answers
  1. Roberto
    Roberto avatar
    2 posts
    Member since:
    Dec 2010

    Posted 15 Apr 2011 Link to this post

    Hi!
    I have a View with a Master - Details layout, in the Master i have a RadTreeList View with Hierarchical Data. In the Details I have a ComboBox which display the details of the selected value item of the Grid. How can i set the right property? I'm working with the MVVM, but i have difficulty to display the details. I want to display "Descrizione". Here my code,whats wrong? Thank you all :

    <ComboBox 
                            DisplayMemberPath="Descrizione"
                            SelectedValuePath="Codice"
                            Style="{StaticResource ComboBoxStyle}"
                            Width="140" HorizontalAlignment="Left"
                            ItemsSource="{Binding Source={StaticResource commonProperties}, Path=Content.UnitaOrganizzative,Mode=TwoWay}"
                            SelectedValue="{Binding SelectedItem.Codice, Mode=TwoWay}"
                            SelectedIndex="{Binding SelectedItem.Padre}"
                            VerticalAlignment="Top" />
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 21 Apr 2011 Link to this post

    Hi Roberto,

    Please excuse us for the late reply. 
    Based on the requirements you posted above, I have prepared a sample project. May you take a look at it and let me know whether it corresponds to your scenario you want to achieve ?

    All the best,
    Maya
    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. UI for WPF is Visual Studio 2017 Ready
  4. Roberto
    Roberto avatar
    2 posts
    Member since:
    Dec 2010

    Posted 21 Apr 2011 Link to this post

    That's great! Thank you so much!
Back to Top