RadText Box Maxlength

2 posts, 0 answers
  1. Mayur
    Mayur avatar
    34 posts
    Member since:
    Mar 2012

    Posted 20 May 2014 Link to this post

    I have a Radtextbox in which i have given Maxlength property for eg:128 ,for English language its not allowing to type more than 128 characters which is fine,but when i select Japanese language and type its allow me to type more than 128 characters ,i dont want this to happen.

    Please Suggest.

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 23 May 2014 Link to this post

    Hello Mayur,

    Thank you for contacting Telerik Support.

    I have tested locally although you are able to input more characters than the specified in the maxlength, after blurring the control, the max length will be applied correctly. This behavior could be replicated in Firefox and Chrome, but not in IE.

    Please note that this is a browsers related issue and you could easily test the following input element that will reproduce the same behavior:
    <input type="text" name="name" value=" " maxlength="3"/>

    Nevertheless, you could try to handle the input's element onkeydown event and implement some custom logic for handling that browser limitation.

    Konstantin Dikov

    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