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

Slow switching between tabs

1 Answer 614 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Hadrien
Top achievements
Rank 1
Hadrien asked on 03 May 2013, 07:33 AM
Hi,

I've a RadTabControl with some RadTabItem and one of them contains a RadGridView with a lot of content (I bind an ObservableCollection).
When I switch from any tab to this one it always takes some time (a few seconds) so it seems that in some how the gridview is loaded again.

Since this list is static, are there a way to improve the performance?

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 07 May 2013, 11:55 AM
Hello Hadrien,

By default the RadTabControl keeps the state of the currently selected RadTabItem, only. After changing the selection the content of the last active tab is unloaded in order to load the content of the newly selected tab. However, in your case you can try setting the IsContentPreserved property of the RadTabControl to True. By doing this you will force the RadTabControl to keep the content of its items even when they are not selected. For more information you can read this article.

Please give this approach a try and let us know if you have any other questions.

All the best,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TabControl
Asked by
Hadrien
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or