RadDock in floating dockMode

2 posts, 0 answers
  1. Mrinal
    Mrinal avatar
    1 posts
    Member since:
    May 2011

    Posted 06 Oct 2011 Link to this post

    is there any way to limit floating of the RadDock to a specific web element like div etc?
    My requirement is if I have a RadDock with Floating DockMode and but I want to limit the Floating mode only to a specific DIV, i.e. the RadDock should only be moved inside a specific DIV.

    thanks in advance for any help!!
  2. Slav
    Slav avatar
    1359 posts

    Posted 10 Oct 2011 Link to this post

    Hello Mrinal,

    The described functionality can be implemented by attaching an event handler to the RadDock's event OnClientDragEnd and writing some additional client script in order to check whether a dock control is in a particular zone and to specify its behavior in case it is out of this zone.

    For your convenience I have attached a sample page, implementing the described approach. Please use it as a base for your further development.

    Note that the RadWindow control provides a Restriction Zone functionality, so you may consider using it in your scenario.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top