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

resize raddoczone dynamically

3 Answers 61 Views
Dock
This is a migrated thread and some comments may be shown as answers.
prayag ganoje
Top achievements
Rank 1
prayag ganoje asked on 16 Mar 2011, 08:52 PM
Hello,

I have raddocs with different height and size. Is it possible to resize the raddoczone according to the size of raddoc ?

Also is it possible to store them database to maintain its state till next login ?

Prayag

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 17 Mar 2011, 02:11 PM
Hello Prayag,

With the current implementation of the RadDock and RadDockZone controls, it is only possible to resize the Height of the docking zone according to the height of the child docks. To do this you simply leave the Height property of the zone not set.
It is not possible to resize the Zone's width according to the dock's width.

Greetings,
Pero
the Telerik team
0
prayag ganoje
Top achievements
Rank 1
answered on 17 Mar 2011, 02:33 PM
Thanks for the reply.

More specifically it is like, can I add/ remove/ relocate/ resize radDocZone dynamically on postback then it will be easy to change the layouts as require ?

Also can I save these settings of dynamically created radDocLocations and dynamically created radDocs in to the database ?

Prayag

0
Pero
Telerik team
answered on 21 Mar 2011, 11:55 AM
Hello Prayag,

If you know the actual width of the zone, then yes you could set the Width property on the server, and it will be reflected on the client. The zones can be programmatically created and added on the server. If you want to remove a certain zone on a postback, you should simply not recreate it when the post back occur and the zone will be removed.
Relocation of the zone would only make sense if the docks residing in the zone are not draggable, and cannot be moved to another zone. I would recommend moving the docks from one zone to another. Basically, the docks should always be added to the RadDockLayout, and moved to the desired zone, using the RadDock.Dock server side method to place a dock in the zone, or RadDock.Undock to remove a dock from a zone.

Examples of saving the state of dynamically created docks into DB, can be found in our Code Library:

Kind regards,
Pero
the Telerik team
Tags
Dock
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Pero
Telerik team
prayag ganoje
Top achievements
Rank 1
Share this question
or