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

Components should not save their states

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 03 Jun 2013, 05:33 AM
Hi,
I have the following problem:

1. View1.xaml: I set the a components attribute to a value (e.g.  set the RadGridPager to the second page)
2. I navigate to View2.xaml
3. I navigate back to View1.xaml - the RadGridPager is still on PAge 2 and not on it's default value.

I know, that this behavior could be a feature, but I need a 'reset' after I navigate back to an prev. view.

Thanks a lot!

- Tobias

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 03 Jun 2013, 09:08 AM
Hello Tobias,

I'm not sure what kind of logic and implementation you use to change the views, but if you can consider using the RadTabControl. By default the control doesn't keep the state of the content of its Items during a selection change. This means that you can place your views in the Content of RadTabItems. Then any state-related setting you dynamically change in the views, will be lost once the selection in the RadTabControl is changed.

Please give the RadTabControl a try and let us know if it works for you.

Regards,
Tina Stancheva
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Tobias
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or