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

cannot load or save the grid settings using persistence framework

2 Answers 124 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 10 Jul 2012, 02:57 PM
Hi,
i have a problem ,i am registering grids for persistence storage ,all it only create the files but not loading or saving the settings of grids.
on the page/usercontrol loaded event
i am registering grids
 PersistenceManager.SetStorageId(grid1, PersistenceKey);

and then after that using the isolated storage
IsolatedStorageProvider 
object i am calling the respective methods on loaded and unloaded events of the usercontrol.
i am not registering the control using the xaml.
kindly help me on this.regards shabbir

2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 13 Jul 2012, 12:12 PM
Hello,

I would like to ask you if the issue is present when saving/loading persisted state on button click?
Could you please check if your Loaded event handler is called and the controls state is as you expect (before restoring them). It is possible the Loaded event is fired too early.

If the above points are not valid for your case, could you please send us a sample project demonstrating the issue in order to investigate it in detail.

On a side note, I just wanted to encourage you to take advantage of the support ticketing system (http://www.telerik.com/account/support-tickets/new-support-ticket.aspx) in cases when you need a prompt response to urgent issues. This is the best way to reach our support staff and attach sample project.

Hope this helps.

Kind regards,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Muhammad
Top achievements
Rank 1
answered on 13 Jul 2012, 02:36 PM
thanks for replying,sorry my mistake i didnt register the gridview using the service .and thats why it was not working ...thanks for replying its solved .
ServiceProvider.RegisterPersistenceProvider<ICustomPropertyProvider>(typeof(RadGridView), new GridViewCustomPropertyProvider()); 

Tags
PersistenceFramework
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Muhammad
Top achievements
Rank 1
Share this question
or