Hi,
I have a problem using the
I have a problem using the
- GridViewCheckBoxColumn
- GridViewComboBoxColumn
When I edit data in a "GridViewDataColumn" and execute my custom "UpdateItemCommand" I have no problems and my SelectedItem displays the changes which were entered in the "GridViewDataColumn".
However the problem occurs when I edit a "GridViewCheckBoxColumn" or "GridViewComboBoxColumn". The SelectedItem does not display the changes made by these Columns.
Thank you for your help!
Martin
However the problem occurs when I edit a "GridViewCheckBoxColumn" or "GridViewComboBoxColumn". The SelectedItem does not display the changes made by these Columns.
Thank you for your help!
Martin
<
my:RadGridView
x:Name
=
"RadGridView"
SelectedItem
=
"{Binding SelectedItem, Mode=TwoWay}"
ItemsSource="{Binding PLC_Items}>
<
my:RadGridView.Columns
>
<
my:GridViewDataColumn
Header
=
"ID"
DataMemberBinding
=
"{Binding ID}"
IsReadOnly
=
"True"
/>
<
my:GridViewDataColumn
Header
=
"ItemName"
DataMemberBinding
=
"{Binding Name}"
Width
=
"*"
/>
<
my:GridViewComboBoxColumn
Header
=
"Function"
ItemsSource
=
"{Binding AllFunctions}"
DataMemberBinding=
"{Binding Function}"
/>
<
my:GridViewCheckBoxColumn
Header
=
"Auto Update"
DataMemberBinding
=
"{Binding AutoUpdate, Mode=TwoWay}"
/>
<
my:GridViewColumn
Width
=
"Auto"
>
<
my:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"2"
>
<
telerik:RadButton
Command
=
"{Binding DataContext.WriteItemCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type my:RadGridView}}}"
/>
<
telerik:RadButton
Command
=
"{Binding DataContext.UpdateItemCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type my:RadGridView}}}"
/>
<
telerik:RadButton
Command
=
"{Binding DataContext.ReadItemCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type my:RadGridView}}}"
/>
<
telerik:RadButton
Command
=
"{Binding DataContext.DeleteItemCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type my:RadGridView}}}"
/>
</
StackPanel
>
</
DataTemplate
>
</
my:GridViewColumn.CellTemplate
>
</
my:GridViewColumn
>
</
my:RadGridView.Columns
>
</
my:RadGridView
>