Change TabItem - Binding Problem

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 03 May 2013 Link to this post

    Hi,

    i use a RadTabControl with a AutoCompleteBox on it. Here i select a customer and fill the TabItem with data.
    After changing the Tab the TabItem is empty? the AutoCompelteBox is empty, too!

    The Main Problem is that i create each tab by code and in each tab a usercontrol is loaded. Now i select a customer
    and display the data in the tabitem. When i change the tab the first one is empty again when i come back.

    What is to do to hold the information in the TabItem?

    THanks
    Best Regards
    Rene
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 07 May 2013 Link to this post

    Hello Rene, 

    We already answered this question in your support ticket. However, I will post the same answer here so others from the community can see it.

    By default the RadTabControl only keeps the content for its selected tab. After the selection is changed the content of the last active RadTabItem is unloaded and that is why the content does not keep its state. However, you can use the RadTabControl.IsContentPreserved property which loads the RadTabItems and does not unload them after the selection is changed. For more information about the IsContentPreserved property you could take a look at this article.

    Regards,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top