Restrict user from entering unlimited number of decimals

2 posts, 0 answers
  1. Rick Nguyen
    Rick Nguyen avatar
    21 posts
    Member since:
    May 2006

    Posted 17 Jul 2014 Link to this post

    In the example below, how can I restrict a user from entering more than 5 decimals in the textbox? 

     .HtmlAttributes(new { style = "width:75px" })
  2. Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 18 Jul 2014 Link to this post

    Hello Rick,

    Kendo UI NumericTextBox is designed to restrict user input based on min/max value, but it does not do that for the decimal digits. Widget has a decimals option, which specifies the precision of the number. If this does not help you, then you will need to manually restrict user input using a custom JavaScript implementation, which falls out of the scope of the entitled technical support.

    Georgi Krustev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top