Hi There,
Is there a way to force select all text in a RadAutocompleteTextBox? I tried to set IsHighlighted = true but it didn't work.
Thanks,
Ke
2 Answers, 1 is accepted
0
Kalin
Telerik team
answered on 16 Jan 2014, 01:18 PM
Hello Ke,
In order to select all the text you will need to get the TextBox which contains the text and call its SelectAll method. If you are doing this on button click, the handler should look like following:
(this.Auto.ChildrenOfType<TextBox>().First() as TextBox).SelectAll();
}
Firstly you will need to focus the AutoCompleteBox to be able to select all the text.
Hope this helps.
Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>