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

Problem with dynamically created radDock zone Id

1 Answer 56 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Jesmon
Top achievements
Rank 1
Jesmon asked on 17 Mar 2012, 06:41 AM
Hi,
        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);
            phdControl.Controls.Add(raddz11);

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

Thanks in Advance
Jesmon Joseph

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 21 Mar 2012, 04:11 PM
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.

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.
Tags
Dock
Asked by
Jesmon
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or