Slow switching between tabs

2 posts, 1 answers
  1. Hadrien
    Hadrien avatar
    28 posts
    Member since:
    Apr 2012

    Posted 03 May 2013 Link to this post


    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?
  2. Answer
    Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 07 May 2013 Link to this post

    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.

Back to Top