Completed
Last Updated: 21 Jan 2021 07:21 by ADMIN
Sarthak
Created on: 17 Sep 2020 08:26
Category: TextBox
Type: Feature Request
1
Character length restrictions
How do I make the textbox accept at max 50 chars.user shouldn't be able to type any further if it's crossed 50chars.
2 comments
ADMIN
Preslava
Posted on: 21 Jan 2021 07:21

Hi Sarthak,

I am happy to share that the maxlength property is now available for use within the TextBox component.

More information on how to use it could be found here:

https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/character-counter/ 

Regards,
Preslava
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Martin Bechev
Posted on: 18 Sep 2020 11:15

Hi Sarthak,

Currently, the TextBox component does not support such a restriction option. However, it would be a nice enhancement to have. That is why I converted this ticket to a feature request item and added your vote.

https://feedback.telerik.com/kendo-angular-ui/1485007-character-length-restrictions

This way people can help us determine the demand for this enhancement and prioritize our development tasks accordingly. 

As a workarond the developer can set max length validator through a reactive form:

https://stackblitz.com/edit/angular-wmmjay-xhatds?file=app/app.component.ts

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.