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

How to add zone to layout programmatically?

1 Answer 63 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Karen
Top achievements
Rank 1
Karen asked on 13 Oct 2008, 01:36 PM
Hello I am trying to add DockZone to DockLayout diagrammatically but it doesn't in online example it doesn't show how to do that,

I am trying to do the following

Layout.Controls.Add(zone);

but after that it still have RegisteredZones.Count =0

any help is very appreciated.

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 13 Oct 2008, 02:38 PM
What you mean by "diagrammatically "?
 
If you want to add them programmatically you should do it in the pageInit, e.g.

 

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
RadDockZone zone = new RadDockZone();
zone.ID =
"RadDockZone1";
RadDockLayout1.Controls.Add(zone);
}

 

Tags
Dock
Asked by
Karen
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or