Problem with dynamically created radDock zone Id

2 posts, 0 answers
  1. Jesmon
    Jesmon avatar
    17 posts
    Member since:
    Jul 2012

    Posted 17 Mar 2012 Link to this post

            I have created a dockzone dynamically inside a placeholder 
        code in cs page :

                RadDockZone raddz11 = new RadDockZone();
                raddz11.ID = "raddz11";

                raddz11.RegisterWithScriptManager = true;
                raddz11.BackColor = System.Drawing.Color.FloralWhite;
                raddz11.Width = Unit.Pixel(100);
                raddz11.Height = Unit.Pixel(200);

        When i saving the Dockstate , DockZone ID getting Null. Please help to getting dynamically created RadDockZone  Id while saving

    Thanks in Advance
    Jesmon Joseph

  2. Slav
    Slav avatar
    1359 posts

    Posted 21 Mar 2012 Link to this post

    Hi Jesmon,

    Note that you should recreate the RadDockZone on every page load and it is required to always set the same value in its property ID so that the state of the RadDock controls can be saved correctly. Also, it is recommended to add the RadDockZone on the Init page event in order to ensure that it is initialized properly.

    I have attached a sample page that demonstrates dynamical creation of RadDockZones. Please use it as a reference for incorporating this feature into your actual project.

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