This question is locked. New answers and comments are not allowed.
I am using the Gridview Product Version 2012.1.0430.1050
I am binding the grid to an observable collection.
I am using the Event trigger
On some of the columns are editable based on a bool (HasOnshore) on the VM bound to IsReadOnly
After the Grid is loaded I can still enter edit mode for the columns that are using the binding. After leaving the column (either tab or mouse) the isReadOnly binding takes effect and the column is no longer editable. Columns that have not been edited can still be edited.
If I use ENTER or click into another cell in the same column the IsReadOnly does NOT get implemented and I can continue to edit the record.
Steps takes:
Displayed the bool to insure the change of the values in the VM
I changed to IsReadOnlyBinding - this did not work at all and the cells remained editable for both True and False values
I am binding the grid to an observable collection.
<
telerik:RadGridView
x:Name
=
"ACGrid"
IsFilteringAllowed
=
"False"
Style
=
"{StaticResource TelerikGridStyle}"
ItemsSource
=
"{Binding LPItemEditList, Mode=TwoWay}"
SelectedItem
=
"{Binding SelectedLPItemEdit, Mode=TwoWay}"
>
I am using the Event trigger
On some of the columns are editable based on a bool (HasOnshore) on the VM bound to IsReadOnly
<
telerik:GridViewDataColumn
Header
=
"Onshore Ask"
DataMemberBinding
=
"{Binding OnshoreAsk,StringFormat=F1}"
TextAlignment
=
"Right"
Width
=
"65"
HeaderTextAlignment
=
"Right"
IsReadOnly
=
"{Binding HasOnshore}"
Background
=
"{Binding LPSetVM.BkOnshore, Source={StaticResource Locator}}"
CellStyleSelector
=
"{StaticResource lPEditedSelector}"
/>
After the Grid is loaded I can still enter edit mode for the columns that are using the binding. After leaving the column (either tab or mouse) the isReadOnly binding takes effect and the column is no longer editable. Columns that have not been edited can still be edited.
If I use ENTER or click into another cell in the same column the IsReadOnly does NOT get implemented and I can continue to edit the record.
Steps takes:
Displayed the bool to insure the change of the values in the VM
I changed to IsReadOnlyBinding - this did not work at all and the cells remained editable for both True and False values