This question is locked. New answers and comments are not allowed.
I'm trying to dynamically enabled disable columns based on MVVM properties, but so far it's not working:
<
telerik:GridViewDataColumn
Header
=
"Auto Close"
Width
=
"80"
CellStyle
=
"{StaticResource TelerikCellStyle}"
DataMemberBinding
=
"{Binding SiteAutoCloseDay}"
IsSortable
=
"False"
IsReadOnly
=
"{Binding AutoCloseDayEnableNot}"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding SiteAutoCloseDay, Mode=TwoWay}"
Tag
=
"{Binding}"
IsEnabled
=
"{Binding AutoCloseDayEnable}"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"Click"
>
<
ei:CallMethodAction
TargetObject
=
"{Binding Path=DataContext, RelativeSource={RelativeSource AncestorType=UserControl}}"
MethodName
=
"SiteAutoCloseDaySelected"
/>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
CheckBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
Any suggestions?
Cheers, Rob.