This is a migrated thread and some comments may be shown as answers.

ComboBox and Hiearchical Data

2 Answers 89 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 15 Apr 2011, 11:52 AM
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 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 21 Apr 2011, 09:20 AM
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
0
Roberto
Top achievements
Rank 1
answered on 21 Apr 2011, 09:30 AM
That's great! Thank you so much!
Tags
ComboBox
Asked by
Roberto
Top achievements
Rank 1
Answers by
Maya
Telerik team
Roberto
Top achievements
Rank 1
Share this question
or