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

change focus triggers requeres my tab item with frame control

4 Answers 91 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Sam Ur
Top achievements
Rank 2
Sam Ur asked on 03 Oct 2010, 10:13 PM
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.

4 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 06 Oct 2010, 01:13 PM
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
0
Sam Ur
Top achievements
Rank 2
answered on 06 Oct 2010, 08:39 PM
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!
0
Tina Stancheva
Telerik team
answered on 12 Oct 2010, 12:54 PM
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
0
Sam Ur
Top achievements
Rank 2
answered on 12 Oct 2010, 02:24 PM
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.
Tags
TabControl
Asked by
Sam Ur
Top achievements
Rank 2
Answers by
Zarko
Telerik team
Sam Ur
Top achievements
Rank 2
Tina Stancheva
Telerik team
Share this question
or