Hello,
I am using a RadMaskNumericInput control, but I am not able to clean the value on the ViewModel. My set property is not hit when the user clicks the RadMaskNumericInput.ClearButton.
I also tried to set the ClearCommand to an ICommand, but it is neither hit when the user clicks on the Clear button.
The only thing that happens when the clear button is clicked is that the text of the RadMaskNumericInput is cleaned, but not the value bound to it.
The version is the 2011 Q1
What I am doing wrong?
Thanks in advance,
This is the xaml:
I am using a RadMaskNumericInput control, but I am not able to clean the value on the ViewModel. My set property is not hit when the user clicks the RadMaskNumericInput.ClearButton.
I also tried to set the ClearCommand to an ICommand, but it is neither hit when the user clicks on the Clear button.
The only thing that happens when the clear button is clicked is that the text of the RadMaskNumericInput is cleaned, but not the value bound to it.
The version is the 2011 Q1
What I am doing wrong?
Thanks in advance,
This is the xaml:
<telerik:RadMaskedNumericInput Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Stretch" Mask="{Binding Path=Mask}" IsClearButtonVisible="True" AutoFillZeros="True" AutoFillNumberGroupSeparators="{Binding Path=IsNumber}" AllowSkipPlaceholders="False" Background="{Binding Path=IsValid, Converter={StaticResource boolToBackgroundConverter}, Mode=OneWay}"> <telerik:RadMaskedNumericInput.Value> <Binding Path="Value" Mode="TwoWay" UpdateSourceTrigger="LostFocus" NotifyOnValidationError="True" ValidatesOnExceptions="True" ValidatesOnDataErrors="True"> </Binding> </telerik:RadMaskedNumericInput.Value> </telerik:RadMaskedNumericInput>