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

Not sure when to use

1 Answer 67 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 16 Feb 2012, 11:01 PM
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?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 21 Feb 2012, 01:53 PM
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.

Regards,
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 >>
Tags
PersistenceFramework
Asked by
Rayne
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or