Numeric Range Validation Issue

3 posts, 0 answers
  1. Tirumala Manikanta
    Tirumala Manikanta avatar
    4 posts
    Member since:
    Oct 2015

    Posted 29 Oct 2015 Link to this post


     When we set the Numeric Range validation as (2 - 10) using MaskedInputExtensions, we are not able to enter 10 in the textbox. We need to enter 9 and then press up arrow to input 10. Please suggest how to solve this issue.

            <telerik:RadMaskedNumericInput Height="23" Width="200" maskedInput:MaskedInputExtensions.Maximum="10" maskedInput:MaskedInputExtensions.Minimum="2"/>​

  2. Dinko
    Dinko avatar
    937 posts

    Posted 03 Nov 2015 Link to this post

    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"
    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.

    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
  3. Tirumala Manikanta
    Tirumala Manikanta avatar
    4 posts
    Member since:
    Oct 2015

    Posted 03 Nov 2015 in reply to Dinko Link to this post

    Hi Dinko,

     Setting UpdateValueEvent="LostFocus" solved the issue. Thanks.

Back to Top