I am looking for a sample of using Data triggers in cell style with auto commit
,something like the below style(not working)
Whenever user press a key inside the editor,i would like that the trigger will evaluate the current text
< Style x:Key="LengthStyle" TargetType="telerik:GridViewCell" BasedOn="{GridViewCellStyle}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsValidLength}" Value="False">
<Setter Property="Background" Value="red" />
</DataTrigger>
<DataTrigger Binding="{Binding IsValidLength}" Value="True">
<Setter Property="Background" Value="green" />
</DataTrigger>
</Style.Triggers>
</Style>
Thanks in advance
,something like the below style(not working)
Whenever user press a key inside the editor,i would like that the trigger will evaluate the current text
< Style x:Key="LengthStyle" TargetType="telerik:GridViewCell" BasedOn="{GridViewCellStyle}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsValidLength}" Value="False">
<Setter Property="Background" Value="red" />
</DataTrigger>
<DataTrigger Binding="{Binding IsValidLength}" Value="True">
<Setter Property="Background" Value="green" />
</DataTrigger>
</Style.Triggers>
</Style>
Thanks in advance