Thank you for writing.
In order to limit the tokens, you can use the RadAutoCompleteBox.TokenValidating
event and set the TokenValidatingEventArgs.IsValidToken
property to false
if the RadAutoCompleteBox.Items
collection exceeds the limit.
As to the question about detecting when a token is created, indeed, the CreateTextBlock
event is appropriate. However, you need to check the TextBlock
sender, Telerik.WinControls.UI.CreateTextBlockEventArgs e)
I hope this information helps. Should you have further questions I would be glad to help.
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post
and share your thoughts.