Angular Autocomplete

1 Answer 82 Views
AutoComplete
Cole
Top achievements
Rank 1
Cole asked on 22 Feb 2023, 10:35 PM
Hello, 

I am trying to put a max length on the angular autocomplete component to only allow a certain amount of characters to be typed. So far I have had no luck trying to use autocomplete api documentation. 

Hopefully someone is able to help. Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Veselin
Telerik team
answered on 24 Feb 2023, 09:40 AM

Hi Cole,

The Kendo UI for Angular AutoComplete component does not have a built-in max length functionality, however, you can access the DOM input element of the component and set the desired "maxlength" attribute programmatically:

https://stackblitz.com/edit/angular-xpbxqh-meaab3 

I have added a vote on your behalf in the already existing feature request for a built-in max-length property for the components from the DropDowns package that contains an Input: 

https://feedback.telerik.com/kendo-angular-ui/1360739-let-users-set-maximum-number-of-characters-user-can-enter-in-combobox

I hope this helps.

Regards,
Veselin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
AutoComplete
Asked by
Cole
Top achievements
Rank 1
Answers by
Veselin
Telerik team
Share this question
or