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

Load visual tree for all tabs

1 Answer 79 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 19 Feb 2010, 05:12 PM
Hello

I have a form that contains a tab control.  Each tab has input controls (textbox, numeric, ect).  At the bottom of the form I have a custom status flag control.  Each input in the form contains a status flag within the status flag control.  When clicking the status flag, it sets focus the control its "attached" too.

The problem is that if a tab is selected and I click a status flag for a control inside the tab item, it gains focus.  If I click a status flag for a control that is in a tab that currently isn't selected, the logic doesn't find the control.  After looking on this form I see that the tab item isn't attached to the tree until it is selected and then detached when another tab is selected.

Is there a way to attached all controls within each tab to the control tree?  If the telerik tab control can't do this, can the silverlight toolkit tab control achieve what I'm looking for.

Thanks
-K

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 23 Feb 2010, 07:58 PM
Hello Kevin,

No, unfortunately there is no way to load the visual tree for content that is not currently selected.

As far as I know the Toolkit TabControl behaves similarly.

This is done for performance reasons mainly since loading controls that are not visible is unnecessary.

My suggestion is to databind the control that you want to change. This way you can change its status whenever you need by changing the property it is bound to and it will be updated when the user switches to its tab.

Greetings,
Miroslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TabControl
Asked by
Kevin
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or