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

Create Dynamic Raddock layout, zone and dock.

3 Answers 197 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ajish Rehuman
Top achievements
Rank 1
Ajish Rehuman asked on 27 Jul 2009, 08:55 PM
Hi,

I am trying to create some docks dynamically in my application. Not only the docks, the raddockzone and raddockLayout is also created dynamically. I dont have any issues in creating this dynamically. But if I drag a dock to any other zone, all the dynamically created docks are lost during postback. Here i am using two layouts, one which is created dynamically and other one which ia already there and holds some static zones in them. The problem occurs when I try to drag and drop on dock in either way.

Can you give me a solution for this immediately. I am working on this for a long time now. I cannot wate anymore time. Any help is appreciated.

Thanks,

Ajish.

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 30 Jul 2009, 01:27 PM
Hello Ajish,

This behavior is expected because you are creating the RadDockLayout dynamically. The RadDockLayout manages the state of the zones and the docks on the page, and if it is created dynamically its state should also be saved and used to recreate the layout on every post back (this extra effort is not needed when you can place the layout statically on the page). That is why we recommend the RadDockLayout to be static and create zones/docks dynamically (if you need them to be created dynamically). Please note that only one instance of the layout is needed to manage the states of the zones and docks.   


Regards,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zeeshan Ahmed Khan
Top achievements
Rank 1
answered on 20 Aug 2009, 06:14 AM
Correct me i understood u wrong...Do u mean we can't create More than 1 instance of RadDockLyaout to handle Dynamically Created Docks...(THIS IS ONLY VALID FOR DYNAMICALLY CREATED DOCKS...RIGHT?)



Regards;
Zeeshan Ahmed Khan
0
Pero
Telerik team
answered on 25 Aug 2009, 08:37 AM
Hello Zeeshan Ahmed Khan,

No I don't mean that you cannot use more than one instance of RadDockLayout to manage the state of certain dynamically created RadDocks. All I am saying is that the RadDockLayout should be defined in the .aspx (not in the code behind) and that only one RadDockLayout is enough to manage the docks' states. It is up to you to decide how many instances you will use, and which instance will manage which docks.


Regards,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
Ajish Rehuman
Top achievements
Rank 1
Answers by
Pero
Telerik team
Zeeshan Ahmed Khan
Top achievements
Rank 1
Share this question
or