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.
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
0
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!
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
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
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.
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.