This question is locked. New answers and comments are not allowed.
Hi i have 2 buttons which are in a radgridview. On click of either of the buttons i want both to be disabled. I am using MVVM so didnt want to do anything in the code behind, however if this is the only way then i will take it. The buttons already have a converter which disables or enables the buttons based on its value. This is what my code looks like so far;
Thanks in advance.
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Telerik:RadButton
x:Name
=
"_buttonApprove"
IsEnabled
=
"{Binding FormState,Mode=TwoWay, Converter=StaticResource FormStateActionButtonConverter}}"
ToolTipService.ToolTip
=
"Approve"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"Click"
>
<
cmd:EventToCommand
Command
=
"{Binding CanVerifyCommand, Source={StaticResource vm}}"
CommandParameter
=
"{Binding}"
></
cmd:EventToCommand
>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
Telerik:RadButton
>
<
Border
Padding
=
"7"
></
Border
>
<
Telerik:RadButton
x:Name
=
"_buttonReject"
IsEnabled
=
"{Binding FormState,Mode=TwoWay, Converter={StaticResource FormStateActionButtonConverter}}"
Tag
=
"showrejectstaticdataformwindow"
ToolTipService.ToolTip
=
"Reject"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"Click"
>
<
cmd:EventToCommand
Command
=
"{Binding ExecuteCommand, Source={StaticResource vm}}"
CommandParameter
=
"{Binding Tag, ElementName=_buttonReject}"
></
cmd:EventToCommand
>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
Telerik:RadButton
>
</
StackPanel
>
</
DataTemplate
>
Thanks in advance.