First of all I wanna say that I just started learning C# and XAML. I got very interested in the use of the Rad Controls and had some problems to implement a RadComboBox which refrences the selected Item in a RadGridView.
My goal is to develop a Master Detail View which uses the RadGridView for selection and a form with comboboxes and textboxes.
I am using Entity Framework and .Net 3.5
Here is my XAML Sourcecode:
As you can see I didn't populate the ComboBox with any properties. I did this because I just did alot of trial and error with SelectedItem SelectedValue(Path) and so on and never came to a result like it worked for the textbox.
Hopefully you can help me with this issue.
My goal is to develop a Master Detail View which uses the RadGridView for selection and a form with comboboxes and textboxes.
I am using Entity Framework and .Net 3.5
Here is my XAML Sourcecode:
<DockPanel> |
<Grid DockPanel.Dock="Top" > |
<Grid.ColumnDefinitions> |
</Grid.ColumnDefinitions> |
<Grid.RowDefinitions> |
<RowDefinition /> |
<RowDefinition /> |
</Grid.RowDefinitions> |
<StackPanel Grid.Row="0" x:Name="PlattenDetail" DataContext="{Binding Source={StaticResource PlattenView}}"> |
<telerik:TextBoxEditor Text="{Binding ElementName=radGridView1, Path=SelectedItem.platteID}"></telerik:TextBoxEditor> |
<telerik:RadComboBox x:Name="CBLieferant" > |
</telerik:RadComboBox> |
</StackPanel> |
<telerik:RadGridView Grid.Row="1" Name="radGridView1" ItemsSource="{Binding Source={StaticResource PlattenView}}" AutoGenerateColumns="False" Height="582" Margin="-8,0,0,-198" |
> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding platteID}" /> |
<telerik:GridViewDataColumn Header="Lieferant" DataMemberBinding="{Binding Path=preise.lieferant.lieferantName1}" /> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</Grid> |
</DockPanel> |
As you can see I didn't populate the ComboBox with any properties. I did this because I just did alot of trial and error with SelectedItem SelectedValue(Path) and so on and never came to a result like it worked for the textbox.
Hopefully you can help me with this issue.