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

save panel bar using docking custome provider

6 Answers 110 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Muhammad
Top achievements
Rank 1
Muhammad asked on 11 Jul 2012, 04:13 PM
Hi Admin,
can you please tell me how to save the layout of the docking panel bar ,i dont wanna stream ,i just wanna save and load it from the isolated storage file the way we doing radgridview,i have added the dockingcustomproperty provider but dont know what to do would be helpful if you provide a sample solution.
ServiceProvider.RegisterPersistenceProvider<ICustomPropertyProvider>(typeof(RadDocking), new DockingCustomPropertyProvider()); 
and
  RadDocking.SetSerializationTag(userFilters, PersistedKey_userFilters);  
   
and then i am calling the

  provider.SaveToStorage(); 


but nothing getting saved.kindly reply i need to finish that.
with best regards shabbir

6 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 16 Jul 2012, 11:24 AM
Hi Shabbir,

You need to set the PersistenceManager StorageId attached property on your RadDocking control:
PersistenceManager.SetStorageId(xRadDocking, "Docking");

Here you can find more information on how to save your UI settings in an isolated storage. I've also attached a sample solution demonstrating how to persist the RadDocking settings in an isolated storage, please have a look at it and let me know if it helps.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Muhammad
Top achievements
Rank 1
answered on 23 Jul 2012, 12:53 PM
i tried and had look into the project you sent to me ,when it tries to save ,my page gets not responding and keeps on this state for many minutes finally had to stop the internet explorer process.
regards
shabbir
0
Tina Stancheva
Telerik team
answered on 23 Jul 2012, 02:41 PM
Hi Muhammad,

Please accept my apology for this inconvenience. It seems that there is an issue with the assemblies in the attached sample, so I fixed that and I attached it again so you can give it a try. Please let me know if it still doesn't work on your side.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Muhammad
Top achievements
Rank 1
answered on 24 Jul 2012, 11:24 AM
yeap i am able to run this solution but in the same way i am trying to implement in my page ,i got 15 panes into different partiion panegroup in one docking and in each pane i got radgridview,when i try to save the page gets stuck and eventually IE stop responding (Not Responding).....

0
Muhammad
Top achievements
Rank 1
answered on 24 Jul 2012, 12:16 PM
after waiting for 20 mints finally came up with System.OutOfMemoryException
0
Alex Fidanov
Telerik team
answered on 27 Jul 2012, 07:09 AM
Hi,

 Are you able to reproduce this exception with the example Tina attached by modifying it and placing a large number of gridviews inside the Docking control?

All the best,
Alex Fidanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PersistenceFramework
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Muhammad
Top achievements
Rank 1
Alex Fidanov
Telerik team
Share this question
or