change focus triggers requeres my tab item with frame control

5 posts, 0 answers
  1. Sam Ur
    Sam Ur avatar
    35 posts
    Member since:
    Mar 2008

    Posted 03 Oct 2010 Link to this post

    Hi,
    I have the following issue. I use Frame control to load data to my tabs - so i can load different pages. But when i change tabs (create new one with different page loaded) - data that my previous pages load get's requeried. How can i disable that - so that when i open a new tab - previous stays as it was and doesn't reset it's self.

    Thank you.
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 06 Oct 2010 Link to this post

    Hi Sam,

    I tried to reproduce your issue, but wasn't able to. I've attached my sample project, so could you please examine it and tell me if you still have that problem ?

    Sincerely yours,
    Zarko
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sam Ur
    Sam Ur avatar
    35 posts
    Member since:
    Mar 2008

    Posted 06 Oct 2010 Link to this post

    Hi Zerko,
    thank you for your reply and demo. The issue i have is that my page contains some gridview control and buttons where i dynamically load other pages into the frame but when i open another tab ... and return to the tab i had opened - i get the first page. I read this forum post as a referal that content - after "active" tab get's focus gets unloaded and then reloaded.

    I don't know...I must admit i haven't tried your example yet - but i will first thing tomorrow and let you know how it goes.

    Thank you for your help!
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 12 Oct 2010 Link to this post

    Hello Sam Ur,

    Unfortunately, this scenario isn't supported by the RadTabContol for now. The reason is that by design the RadTabControl has only one ContentPresenter which holds the currently selected RadTabItem. And whenever the selection changes, the unselected RadTabItem is removed from the VisualTree and the selected RadTabItem's content is displayed in the ContentPresenter thus its content does not keep its state.

    However, we have logged this issue as a feature request in our PITS where you will be able to track its progress and vote for it thus increasing its priority.

    As a workaround, you can keep the state of the RadTabItem's content in a ViewModel.

    Best wishes,
    Tina Stancheva
    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
  6. Sam Ur
    Sam Ur avatar
    35 posts
    Member since:
    Mar 2008

    Posted 12 Oct 2010 Link to this post

    Hi,
    thank you Tina for your reply. Well the feature is very useful because whatever the content (even something "large") is it should stay "as is" eventhough tabs are active or not.

    Well definitivly I'm voting 4 it.
Back to Top
UI for WPF is Visual Studio 2017 Ready