Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Numeric Range Validation Issue

$
0
0
Hi Tirumala Manikanta,

Basically every time you enter a number the Value property of the MaskedNumericInput will be updated. You can try setting the UpdateValueEvent property to "LostFocus".
<telerik:RadMaskedNumericInput Height="23" Width="200"
        UpdateValueEvent="LostFocus"
                maskedInput:MaskedInputExtensions.Maximum="10"
                maskedInput:MaskedInputExtensions.Minimum="2"/>​
This way the Value will be updated after you lose focus from the RadMaskedNumericInput control. If you enter a wrong value (exceeding the minimum and maximum)  the control will rollback to the last valid one.

You can check also our Throwing Validation Exceptions and Using DataAnnotation Attributes articles.
They can show you other ways of limiting your user input double number. 

If you have any other questions regarding Telerik controls, please don't hesitate to contact us.

Regards,
Dinko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 84751

Trending Articles