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

Adding RadDockZone dynamically via Ajax

3 Answers 193 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Johnny Andersen
Top achievements
Rank 1
Johnny Andersen asked on 19 Sep 2008, 09:41 AM
Hello

I would like to know if there is a way to add RadDockZones dynamically to the layout via ajax. I see that there are examples of how to add RadDock controls via ajax by adding them to a hidden updatepanel and docking them clintside. So can we do something similar for RadDockZones?

I have a  acenario where I would  like  to allow the user to drop  RadDocks  both  beside  and  below existing RadDocks. The RadDocks are not of similar size as in the online RadDock demo. I have an idea how to do this if we can create RadDockZones dynamically via ajax.

Thanks

3 Answers, 1 is accepted

Sort by
0
Johnny Andersen
Top achievements
Rank 1
answered on 23 Sep 2008, 07:24 AM
Hello mr telerik, are you there?
0
Accepted
Sophy
Telerik team
answered on 23 Sep 2008, 11:50 AM
Hi Johnny,

There is no anything specific in creating RadDockZones dynamically with ajax. You can dynamically create the zones at a callback the way you would create any other control. The Dynamically Created Docks online example demonstrates how to create RadDocks at a callback as the RadDocks are controls which can be moved in the DOM and their creation is specific. The only thing you need to remember when creating the RadDockZones is to recreate them at Page_Init when the next postback or AJAX request occurs. For your convenience I have attached a sample page which demonstrates the explained above.

All the best,
Sophy
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Johnny Andersen
Top achievements
Rank 1
answered on 24 Sep 2008, 07:27 AM
thanks
Tags
Dock
Asked by
Johnny Andersen
Top achievements
Rank 1
Answers by
Johnny Andersen
Top achievements
Rank 1
Sophy
Telerik team
Share this question
or