Not sure when to use

2 posts, 0 answers
  1. Rayne
    Rayne avatar
    254 posts
    Member since:
    Sep 2010

    Posted 16 Feb 2012 Link to this post

    I would like to persist a RadGridView for visibility and order of columns per user between sessions. The GridView is on a User Control that is added to a RadTabControl at startup via Prism's RegionManager.  This UserControl/TabItem doesn't get removed from the TabControl until the application closes. 

    When (which events) is the best time to load and save?
  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 21 Feb 2012 Link to this post

    Hi Rayne,

     You can try Saving on Application.Exitt event and Loading RadGridView.Loaded event. If the loading in Loaded does not work, you can try load in Dispatcher.BeginInvoke(..). Please let us know if this helped you.

    Petar Mladenov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top