This question is locked. New answers and comments are not allowed.
<
telerik:RadGridView
Margin
=
"0"
Height
=
"250"
Grid.Row
=
"1"
Grid.ColumnSpan
=
"1"
Grid.Column
=
"0"
VerticalAlignment
=
"Stretch"
Grid.RowSpan
=
"7"
x:Name
=
"rgvAviableSamples"
ItemsSource
=
"{Binding AviableSampleItems, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged }"
SelectedItem
=
"{Binding SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
CanUserFreezeColumns
=
"False"
CanUserReorderColumns
=
"False"
AutoGenerateColumns
=
"False"
ShowGroupPanel
=
"False"
CanUserResizeColumns
=
"True"
IsReadOnly
=
"False"
GridLinesVisibility
=
"None"
RowIndicatorVisibility
=
"Collapsed"
ScrollMode
=
"Deferred"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
HorizontalAlignment
=
"Left"
ShowColumnHeaders
=
"True"
SelectionMode
=
"Single"
SelectionUnit
=
"FullRow"
local:CustomFilterBehavior.TextBox
=
"{Binding ElementName=tbFilterByLot}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
UniqueName
=
"IsSelected"
Header
=
""
IsReadOnly
=
"True"
Width
=
"auto"
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
telerik:StyleManager.Theme
=
"{StaticResource Theme}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
telerik:StyleManager.Theme
=
"{StaticResource Theme}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
UniqueName
=
"Lot"
Header
=
"Lot"
IsReadOnly
=
"True"
Width
=
"*"
/>
<
telerik:GridViewDataColumn
UniqueName
=
"ExpirationDate"
Header
=
"ExpirationDate"
DataFormatString
=
"{}{0:yyyy-MM-dd}"
IsReadOnly
=
"True"
Width
=
"*"
/>
<
telerik:GridViewDataColumn
UniqueName
=
"UnitPrice"
Header
=
"UnitPrice"
IsReadOnly
=
"True"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
What I would like to do is:
When I click on some row, the checkbox in the first column is checked, when I click on the same row again (while it is selected), checkbox is unchecked.
I can check and uncheck rows... but only when the row I want to uncheck is not currently selected, if it is - nothing is happening.
Any way around this?
Thanks in advance.
Best regards.