The issue which we are facing while working on Telerik web parts personalization is, we are not able to save current position of web parts.
We need to save state of a particular web part in each and every drag drop, for that we have attached “OnDockPositionChanged” to every RadDock control, but this event is not getting fired while moving the web parts.
So please suggest that:
1. Which event should be used to save state for every movement.
2. What is the ideal approach to implement personalization using database.
Thanks in advance.
Parimal Modi
5 Answers, 1 is accepted
1. You should use the RadDockLayout.LoadDockLayout and RadDockLayout.SaveDockLayout events to manage the states of the dynamically created RadDocks. This following example demonstrates how to create RadDocks dynamically and save their state when they are moved, closed, expanded/collapsed etc.
2. I am sending you a modification of the above mentioned example which saves the state of the docks in a DataBase. You can modify it to save the state of the docks for different users.
Regards,
Pero
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
But I'm not creating dock controls dynamically. So will it wok in my case as well.
I would really appreciate if you can give me an example with static dock controls.
Parimal
Of course it will work. I have attached a project that saves the state of static (created at design time) docks in a DataBase.
Regards,
Pero
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Hi Pero,
Thanks for your sample, but this is not working properly it doesn't saves the Expand, Collapse & Close state of dock .
I'm looking for these properties. Please help me out in this.
Thank you.
Best regards,
Parimal Modi
Thank you.
Best regards,
Parimal Modi