This question is locked. New answers and comments are not allowed.
Hi.
I have a page where I have a domain datasource setup to return a "data_PERSON" object which has linked entities, namely "data_DEPENDANT". I have a user control that has the radgridview to show the "data_DEPENDANTs" and a second user control that is used to show the currently selected "data_DEPENDANT";
Main page xaml;
I have a page where I have a domain datasource setup to return a "data_PERSON" object which has linked entities, namely "data_DEPENDANT". I have a user control that has the radgridview to show the "data_DEPENDANTs" and a second user control that is used to show the currently selected "data_DEPENDANT";
Main page xaml;
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"LightGray"
DataContext
=
"{Binding ElementName=dds, Path=Data}"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"800"
/>
<
ColumnDefinition
Width
=
"1*"
/>
</
Grid.ColumnDefinitions
>
<
riaControls:DomainDataSource
x:Name
=
"dds"
AutoLoad
=
"True"
QueryName
=
"GetData_PERSON"
>
<
riaControls:DomainDataSource.DomainContext
>
<
domain:AppDomainContext
/>
</
riaControls:DomainDataSource.DomainContext
>
</
riaControls:DomainDataSource
>
<
Border
Grid.Row
=
"1"
Grid.Column
=
"0"
Margin
=
"10,-30,10,10"
CornerRadius
=
"10"
Background
=
"White"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
>
<
Grid
x:Name
=
"container1"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
/>
</
Border
>
<
Border
Grid.Row
=
"1"
Grid.Column
=
"1"
Margin
=
"10,-30,10,10"
CornerRadius
=
"10"
Background
=
"White"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
>
<
Grid
x:Name
=
"container2"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
/>
</
Border
>
</
Grid
>
The grid usercontrol is loaded through code-behind into "container2" and the details is loaded into "container1"; XAML for the grid follows;
<
Grid
x:Name
=
"LayoutRoot"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Margin
=
"10"
>
<
telerik:RadGridView
x:Name
=
"radGridView1"
telerik:StyleManager.Theme
=
"Windows7"
IsReadOnly
=
"False"
AutoGenerateColumns
=
"False"
RowIndicatorVisibility
=
"Collapsed"
GroupPanelForeground
=
"#FF1E395B"
Margin
=
"4"
GroupPanelStyle
=
"{StaticResource GridViewGroupPanelStyle}"
BorderBrush
=
"#FFA0AFC3"
ItemsSource
=
"{Binding Path=data_DEPENDANT, Mode=TwoWay}"
IsSynchronizedWithCurrentItem
=
"True"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Dependants Name"
Width
=
"*"
DataMemberBinding
=
"{Binding Path=name}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid>
This correctly shows the child values in "data_DEPENDANT". However when I select an item in the grid I need the data to be shown on in the details control loaded to "container1". I have tried all types of binding however no data is viewed. I need the data to be shown and updated. XAML for the details control follows;
<
Grid
Margin
=
"10,10,30,10"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
StackPanel
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Top"
Orientation
=
"Horizontal"
Margin
=
"0,1,0,0"
>
<
TextBlock
Text
=
"Name"
Width
=
"120"
VerticalAlignment
=
"Center"
/>
<
telerikInput:RadMaskedTextBox
MaskType
=
"None"
Width
=
"220"
Grid.Column
=
"1"
telerik:StyleManager.Theme
=
"Windows7"
Value
=
"{Binding Path=data_DEPENDANT.name}"
/>