How to focus first Control in RadExpanders Content

3 posts, 1 answers
  1. Bruno
    Bruno avatar
    54 posts
    Member since:
    Jul 2012

    Posted 28 Mar 2011 Link to this post

    Hello

    I am trying to focus the first Control in RadExpanders Content when it is expanded.
    How can I get this to work... I don't want to use the controls Name - just the first contol inside the RadExpanders Content that has 'isTabStop'=true

    Thank you for your support!
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 31 Mar 2011 Link to this post

    Hello Bruno,

    The IsTabStop is property used when navigating with the Kyboard`s tab Key. It should be used like so:
    <telerik:RadExpander Width="120" Height="100" >
               <telerik:RadExpander.Content >
                   <TextBox IsTabStop="True" Width="80" Height="30" Text="Test text" />
               </telerik:RadExpander.Content>
           </telerik:RadExpander>
    When expanding the focus is still in the Expander, not in its content controls by default. So you have to pragramatically focus them, using x:Name or ChildrenOftype<>.

    Regards,
    Petar Mladenov
    the Telerik team
  3. DevCraft banner
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 31 Mar 2011 Link to this post

    Hello Bruno,

    The IsTabStop is property used when navigating with the Kyboard`s tab Key. It should be used like so:
    <telerik:RadExpander Width="120" Height="100" >
               <telerik:RadExpander.Content >
                   <TextBox IsTabStop="True" Width="80" Height="30" Text="Test text" />
               </telerik:RadExpander.Content>
           </telerik:RadExpander>
    When expanding the focus is still in the Expander, not in its content controls by default. So you have to pragramatically focus them, using x:Name or ChildrenOftype<>.

    Regards,
    Petar Mladenov
    the Telerik team
Back to Top