This is a migrated thread and some comments may be shown as answers.

Focus on textbox in RadWindow

2 Answers 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 17 May 2011, 11:04 AM
Hi,

I've added a RadWindow to my app that only contains a Textblock and TextBox. I'd like to give focus to that text box automatically when the RadWindow is opened.

Basically I use this.SearchField.Focus() in the RadWindow.WindowOpened event in an attempt to give focus. It doesn't work the first time the window is opened, but it does on subsequent openings.

Regards

David

2 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 17 May 2011, 03:29 PM
Hello David,

 Thank you for writing.
Try setting the focus on the TextBox Loaded or LayoutUpdated events.
Please write again if you need further assistance.

Kind regards,
Victor
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
David
Top achievements
Rank 1
answered on 18 May 2011, 12:10 AM
So simple I'm embarrased I missed it.

Thanks.
Tags
Window
Asked by
David
Top achievements
Rank 1
Answers by
Victor
Telerik team
David
Top achievements
Rank 1
Share this question
or