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

Drag and Drop issue with pointer/cursor movement

5 Answers 105 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 23 Feb 2010, 10:40 PM
We have a project using the rad dock controls and when I drag a dock from one zone to another it is possible to get the dock to lose its connection to the pointer.   To do this I basically just move the dock down below the scrollbar line then move it back up.  My mouse indicator becomes a pointer when this happens instead of the standard cross pointer you see when moving a dock.  

has anyone else experienced this or know of a fix for it.


I performed a pretty complete search trying to look for anyone else having this issue and was unable to find anything.  

5 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 25 Feb 2010, 09:22 AM
Hello Brian,

This is expected behavior, because the dock scrolls the page (scrollbars appear on the browser window) when it goes near the browser window bounds. You can avoid this by making the dock not scroll the page when it's dragged near the browser window bounds by invoking the following client script for every dock on the page:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">
        function DockInit(dock, args)
        {
            dock._resizeExtender._autoScrollEnabled = false;
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="scriptmanager1" runat="server" />
        <telerik:RadDockLayout runat="server" EnableViewState="false" StoreLayoutInViewState="false"
            ID="RadDockLayout1">
            <telerik:RadDockZone runat="server" Skin="" ID="RadDockZone1" Width="400px">
                <telerik:RadDock runat="server" ID="raddock_1" OnClientInitialize="DockInit">
                    <ContentTemplate>
                        <br />
                        <br />
                        <br />
                        <br />
                        Content
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                    </ContentTemplate>
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock1" OnClientInitialize="DockInit">
                    <ContentTemplate>
                        <br />
                        <br />
                        <br />
                        <br />
                        Content
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                    </ContentTemplate>
                </telerik:RadDock>
            </telerik:RadDockZone>
        </telerik:RadDockLayout>
    </div>
    </form>
</body>
</html>



Kind regards,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sarae
Top achievements
Rank 1
answered on 20 Jun 2013, 09:46 PM
I am having a similar issue. I have a page with two vertical zones and several docks in each zone, but zone 2 is shorter than zone 1. The content is long enough that the page has a scrollbar.  I want to be able to drag the dock at the bottom of the zone 1 up to the top of the zone 2, which means I need to scroll to the top with the dock still "attached" to the cursor. Is this possible? Currently, the dock separates from the cursor as soon i leave zone 1 and the page content starts scrolling.
0
Slav
Telerik team
answered on 25 Jun 2013, 01:24 PM
Hi Sarae,

By default the RadDock should not be separated from the cursor once it leaves a RadDockZone. Please check whether there is a custom script that modifies the behavior of the dock controls and remove it, if such exists.

If this is not the case, please elaborate on your scenario so that I can help you accordingly because currently I am mostly guessing as to what your setup is. You can open a support ticket and send a simple, fully runnable page that isolates the problem so that I can inspect it locally and provide an according solution.

Regards,
Slav
Telerik
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 the blog feed now.
0
Sarae
Top achievements
Rank 1
answered on 25 Jun 2013, 04:19 PM
Hi Slav,
Thank you for your reply.  There are no scripts that modify the behavior of the dock.  I will go ahead and open up a support ticket with additional info.
0
Slav
Telerik team
answered on 28 Jun 2013, 08:47 AM
Hello Sarae,

I will post the answer from your support ticket here as well, so that it can be of use to others that encounter the described behavior

Indeed, the dragged dock is moved outside the cursor when you have a dock zone or a container with overflow and the scrollbar is dragged to the bottom. This behavior can be avoided by applying the solution from the Knowledge Base article How to persist the scrollbar position of a vertical RadDockZone.

A similar effect is examined when moving with the cursor while using the scroll wheel of the mouse. This feature is not supported by the dock control and it is logged for implementation.

Regards,
Slav
Telerik
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 the blog feed now.
Tags
Dock
Asked by
Brian
Top achievements
Rank 1
Answers by
Pero
Telerik team
Sarae
Top achievements
Rank 1
Slav
Telerik team
Share this question
or