3 Answers, 1 is accepted
<telerik:RadAutoCompleteBox
ItemsSource="{Binding Members}"
DisplayMemberPath="Name"
TextSearchMode="Contains"
SelectionMode="Single"/>
Here I want to limit the number of characters in the input.
Hello Ohad,
To achieve your requirement you can use the TextBoxStyle property of RadAutoCompleteBox. This will allow you to set the MaxLength property of the underlying RadWatermarkTextBox.
<telerik:RadAutoCompleteBox>
<telerik:RadAutoCompleteBox.TextBoxStyle>
<Style TargetType="telerik:RadWatermarkTextBox">
<Setter Property="MaxLength" Value="5" />
</Style>
</telerik:RadAutoCompleteBox.TextBoxStyle>
</telerik:RadAutoCompleteBox>
Regards,
Martin Ivanov
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/.
Hello, Ohad,
It would be greatly appreciated if you specify the exact Telerik product that you are currently using and which is the input control for which you need to limit the characters. Thus, we would get better understanding of the precise case and the appropriate community and support engineers would gladly assist you. Thank you in advance for the provided information. I am looking forward to your reply.