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

Change Layout

3 Answers 46 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 26 Sep 2008, 07:25 PM
Hi

I am trying to changw the heigh and width of certain Zones during a postback.  Is if I move a dock element from a bigger zone the new zone has to change its size to match the old zone.

I create the RadDockLayout on the form at design time and the rest if built on load.

I have been trying to do this using DockPositionChanged but when it shows the grid the zone isnt big enough for the dock.  I have to hit F5 for it to show correctly.

Can anyone help ?

Cheers

3 Answers, 1 is accepted

Sort by
0
Stuart
Top achievements
Rank 1
answered on 29 Sep 2008, 12:22 PM
dont set the width and height property of the zones (leave empty)

rather use the min-height and min-width properties.

this means the zones will expand by the docks that gets placed inside of them
0
Michael
Top achievements
Rank 1
answered on 30 Sep 2008, 09:04 AM
Thanks for you reply.

The zone resizes as you describe but this does not really solve my issue.  I will explain it abit further.

I am trying to create a "design surface".  The design surface will contain zones as follows

ZONE 1_1       ZONE 1_2

ZONE 2_1       ZONE 2_2

ZONE 3_1       ZONE 3_2

The docks I place into each of the zones can be one or two zones in height.  If I put a object which is two zones in height into ZONE 2_1 I need to remove ZONE 3_1 from the surface and let ZONE 2_1 expand to take its place.

At the moment if I move a dock in this manner ZONE 3_1 stays on the page until I hit refresh and the surface is draw again properly. 

Any ideas ?
0
Michael
Top achievements
Rank 1
answered on 30 Sep 2008, 10:41 AM
Problem solved...I think...  Will get back to you all....
Tags
Dock
Asked by
Michael
Top achievements
Rank 1
Answers by
Stuart
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Share this question
or