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

How to focus first Control in RadExpanders Content

2 Answers 70 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 28 Mar 2011, 03:17 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 31 Mar 2011, 01:28 PM
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
0
Petar Mladenov
Telerik team
answered on 31 Mar 2011, 01:28 PM
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
Tags
Expander
Asked by
Bruno
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or