Prevent Moving from Right zone to Left zone in Raddock...

2 posts, 0 answers
  1. raaj
    raaj avatar
    53 posts
    Member since:
    Jan 2010

    Posted 06 Jan 2012 Link to this post


    I've 2 RadDockZones (Left & Right) in my web ASP.Net AJAX web application.
    In Leftside zone I've usercontrols like SingleLineText, Dropdown, CheckBox etc.
    I can drag these controls from left zone to Right zone. But I want to prevent the moving from Right zone to left zone or any other part in that page.


  2. Slav
    Slav avatar
    1351 posts

    Posted 11 Jan 2012 Link to this post

    Hi Raaj,

    You can achieve the desired effect by following these steps:

    1. Handle the client event OnClientDragEnd of the RadDock control. This event is fired on drag end of the dock controls and it will allow you to detect whether a RadDock is dropped in the right RadDockZone.

    2. When a RadDock is placed in the right RadDockZone, you can use the dock's Client API in order to disable its dragging functionality if you want to prevent its movement at all or set the other RadDockZones as forbidden zones so that the dock control can be docked only in the right dock zone.

    For your convenience I have created a sample that demonstrates the suggested approach. Please use it as a reference for incorporating this feature into your actual project.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top