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

Only allowing tabbed documents to be dragged within the tabstrip has cursor issues

1 Answer 31 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Rock
Top achievements
Rank 1
Rock asked on 14 Oct 2013, 10:02 PM
If I take a tab strip (like the one in Examples/TabbedDocument) and add the following code in order to only allow dragging the documents within the tab strip they are a part of:

radDock1.GetService<DragDropService>().Starting += (sender, args) =>
{
    if ((sender as DragDropService).DragDropContext == DragDropContext.DocumentWindow)
    {
        args.Cancel = true;
    }
};

Then when dragging the cursor does weird things. If I start dragging, it shows the red circle (because I can't drop the document on itself). And if the cursor stays within the tab strip, everything is fine. But if I drag down so I'm hovering over one of the documents themselves, the cursor reverts to a simple pointer, even though I'm still dragging. Ideally, it would remain as a red circle, or if I had first hovered over a different tab, changing the cursor to the valid drop cursor, it should switch back to a red circle.

If I then return to the document tab strip (still dragging), the cursor will come back when I hover over the original document tab being dragged, but not any of the others.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 17 Oct 2013, 04:05 PM
Hi Rock,

Thank you for contacting us.

I have logged this in our Public Issue Tracking System. You can track it, comment or vote to increase its priority on the following url - Pits issue.

Unfortunately I cannot provide you with a workaround for the time being. 

I have also updated your Telerik Points accordingly.

Let me know If there is anything else I can help you with.

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Dock
Asked by
Rock
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or