Dynamic Table Of Zones And Docks

4 posts, 1 answers
  1. Virgil Rodriguez
    Virgil Rodriguez avatar
    70 posts
    Member since:
    Oct 2008

    Posted 14 Dec 2011 Link to this post

    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.

  2. Answer
    Slav
    Admin
    Slav avatar
    1355 posts

    Posted 19 Dec 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Virgil Rodriguez
    Virgil Rodriguez avatar
    70 posts
    Member since:
    Oct 2008

    Posted 20 Dec 2011 Link to this post

    Thanks Slav.

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

    Merry Christmas to you all.
  5. Virgil Rodriguez
    Virgil Rodriguez avatar
    70 posts
    Member since:
    Oct 2008

    Posted 21 Dec 2011 Link to this post

    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 !!!
Back to Top