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

Telerik webparts personalization

5 Answers 101 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Parimal Modi
Top achievements
Rank 1
Parimal Modi asked on 30 Oct 2009, 01:59 PM

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

Sort by
0
Pero
Telerik team
answered on 03 Nov 2009, 03:34 PM
Hi Parimal,

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.
0
Parimal Modi
Top achievements
Rank 1
answered on 03 Nov 2009, 06:32 PM
Thanks for your reply.
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
0
Pero
Telerik team
answered on 05 Nov 2009, 03:04 PM
Hello 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.
0
Parimal Modi
Top achievements
Rank 1
answered on 05 Nov 2009, 05:21 PM

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

0
Parimal Modi
Top achievements
Rank 1
answered on 05 Nov 2009, 07:23 PM
I got this done at my end.

Thank you.

Best regards,
Parimal Modi
Tags
Dock
Asked by
Parimal Modi
Top achievements
Rank 1
Answers by
Pero
Telerik team
Parimal Modi
Top achievements
Rank 1
Share this question
or