I have a grid where the rows have a DatePicker and a DropDown. I want to disable the DropDown if the DatePicker is empty. I have this in my grid:
<
telerik:GridViewDataColumn
DataFormatString
=
"d"
Header
=
"Termination"
DataMemberBinding
=
"{Binding TerminationDate}"
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
telerik:RadDatePicker
x:Name
=
"TerminationDate"
SelectedDate
=
"{Binding Path=TerminationDate, Mode=TwoWay}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewComboBoxColumn
x:Name
=
"TerminationReasonType"
Header
=
"Beneficiary Terminated"
ItemsSource
=
"{Binding Path=ReferenceData.AllBeneficiaryTerminationReasonType}"
DisplayMemberPath
=
"Description"
SelectedValueMemberPath
=
"_BeneficiaryTerminationReasonTypeID.Id"
DataMemberBinding
=
"{Binding TerminationReasonID,UpdateSourceTrigger=PropertyChanged}"
>
<!--
<
telerik:GridViewComboBoxColumn.Style
>
<
Style
TargetType
=
"telerik:GridViewComboBoxColumn"
>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding ElementName=TerminationDate}"
Value
=
"{x:Null}"
>
<
Setter
Property
=
"FrameworkElement.IsEnabled"
Value
=
"false"
></
Setter
>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
telerik:GridViewComboBoxColumn.Style
>
-->
</
telerik:GridViewComboBoxColumn
>
I have tried the commented code but did not work. I can not reach the TerminationDate element.
Ideas?
Thx