force radDock to be inside radZone

2 posts, 1 answers
  1. Mohammad
    Mohammad avatar
    13 posts
    Member since:
    Sep 2008

    Posted 21 Apr 2009 Link to this post

    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
  2. Answer
    Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 21 Apr 2009 Link to this post

    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.
Back to Top