Focus on textbox in RadWindow

3 posts, 0 answers
  1. David
    David avatar
    11 posts
    Member since:
    Oct 2012

    Posted 17 May 2011 Link to this post

    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. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 17 May 2011 Link to this post

    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>>
  3. DevCraft banner
  4. David
    David avatar
    11 posts
    Member since:
    Oct 2012

    Posted 17 May 2011 Link to this post

    So simple I'm embarrased I missed it.

    Thanks.
Back to Top