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

Dynamic Table Of Zones And Docks

3 Answers 56 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Virgil Rodriguez
Top achievements
Rank 1
Virgil Rodriguez asked on 14 Dec 2011, 10:28 PM

Hello,

I have been searching for any example of what I'm trying to achieve, to no avail.

Is it possible to do the following:

  • have a table where the rows and the columns can be dynamically added (possibly by "Add Row" or "Add Column" buttons) and within each table cell, a RadDockZone is created?
  • have RadDocks also dynamically created (say by a "Create 5 Docks" button), and placed initially on the RadDockZone on the first table cell which can then be moved around the previously dynamically created RadDockZones on the table?

I have tried to do this, but I can't seem to persist the newly created zones and docks. How do I accomplish this?

Thanks in advance for any help.

3 Answers, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 19 Dec 2011, 03:00 PM
Hi Virgil,

I would suggest checking the help article Dynamically Creating RadDock Controls for detailed explanation of creating RadDocks dynamically and persisting their layout. Overall, you should always check if the state of every dock control is applied correctly and if the RadDocks and RadDockZones are always recreated with the same ID, when the page is reloaded.

For your convenience I have prepared a sample project, demonstrating programmatic creation of RadDock and RadDockZone controls. Please use it as a reference for incorporating the desired functionality into your actual project.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Virgil Rodriguez
Top achievements
Rank 1
answered on 20 Dec 2011, 04:39 PM
Thanks Slav.

I will try your suggestion and let you know how it goes.

Merry Christmas to you all.
0
Virgil Rodriguez
Top achievements
Rank 1
answered on 21 Dec 2011, 03:36 PM
Thank you once again Slav.

With your sample code as a guide, I was able to make my own code work.

Telerik Customer Support is really awesome !!!
Tags
Dock
Asked by
Virgil Rodriguez
Top achievements
Rank 1
Answers by
Slav
Telerik team
Virgil Rodriguez
Top achievements
Rank 1
Share this question
or