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

force radDock to be inside radZone

1 Answer 44 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mohammad
Top achievements
Rank 1
Mohammad asked on 21 Apr 2009, 07:11 AM
Dear Telerik Team,


in my case i need to make all docks inside an zone

i.e: when move dock
if final position is in any zone its ok and accept dock

if position s in fly or any place but not in zone return dock back to its original zone

how i can do that?

why i need this case,,, because when change dock position to be without zone and then save state its ok and do postback its ok
but when visit the page again... dock position is in top-left of the page


please help me as soon as possible


Fuqaha

1 Answer, 1 is accepted

Sort by
0
Accepted
Petio Petkov
Telerik team
answered on 21 Apr 2009, 03:07 PM

Hi Mohammad,

The RadDock controls can  be floating or docked. Their behavior can be changed using DockMode property. 

  1. DockMode ="Default" - The RadDock control can be docked or floating 
  2. DockMode ="Docked" - The RadDock control cannot be floating.The RadDock control will always be docked in a RadDockZone.
  3. DockMode ="Floating" - The RadDock control cannot be docked to a RadDockZone.The RadDock control will always be floating.

In your case you should set DockMode to Docked.  A simple example which illustrates DockMode property is available here:
http://demos.telerik.com/aspnet-ajax/dock/examples/dockmode/defaultcs.aspx


Sincerely yours,

Petio Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
Mohammad
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Share this question
or