Components should not save their states

2 posts, 0 answers
  1. Tobias
    Tobias avatar
    15 posts
    Member since:
    Apr 2013

    Posted 03 Jun 2013 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 03 Jun 2013 Link to this post

    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.

  3. DevCraft banner
Back to Top