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

DragAndDrop, Touch, and Selection issue

2 Answers 158 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Olivier
Top achievements
Rank 1
Olivier asked on 08 Sep 2014, 01:31 PM
Hello,

I am facing an issue with DragAndDrop in Touch mode in RadTreeView (happens also in RadList)

If I set the following properties on the RadTreeViewItems :
                    <Setter Property="telerik:DragDropManager.AllowDrag" Value="True" />
                    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
                    <Setter Property="telerik:DragDropManager.TouchDragTrigger" Value="TapAndHold"/>

the drag and drop works fine, and the touch drag trigger is correct.
However, in this case, Selection in the RadTreeView via touch input doesn't work anymore: only mouse input is functionnal. 
Tapping on any item of the RadTreeView performs like a MouseOver
Double tapping on any item doesn't expand this item anymore.

This behavior can be observed in the "WPF Controls Example" / "DragAndDrop" / "Tree te Grid Drag" example : on touch, it is impossible to expand or collapse the nodes of the TreeView, nor to select any node.

Is there any workaround for this issue ?

Regards,

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 09 Sep 2014, 03:09 PM
Hi Olivier,

We have to admin this proeprty cannot be used successfully in RadTreeView and we will remove this setting from this demo. When TouchDragTrigger is set , the DragDropManager sets additional element on top of the RadTreeView and that is why MouseDown and MouseDoubleClick events are not propagated to the RadTreeView.

Currently there is no easy way to change the touch drag trigger in RadTreeView but we have a feature request that you can vote for.  

As for the RadList you mention - is it RadListBox or RadTileList or RadTileView ? In the RadListBox DragDrop Demo the Selection works correctly on touch devices and the TouchDragTrigger is TapAndHold.
<telerik:RadListBox.DragDropBehavior>
                    <telerik:ListBoxDragDropBehavior AllowReorder="True" telerik:DragDropManager.TouchDragTrigger="TapAndHold" />
                </telerik:RadListBox.DragDropBehavior>
However, please keep in mind that this proeprty is set on the ListBoxDragDropBehavior.


Regards,
Petar Mladenov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Petar Mladenov
Telerik team
answered on 09 Sep 2014, 03:11 PM
Hi Olivier,

We have to admit this property cannot be used successfully in RadTreeView and we will remove this setting from this demo. When TouchDragTrigger is set , the DragDropManager sets additional element on top of the RadTreeView and that is why MouseDown and MouseDoubleClick events are not propagated to the RadTreeView.

Currently there is no easy way to change the touch drag trigger in RadTreeView but we have a feature request that you can vote for.  

As for the RadList you mention - is it RadListBox or RadTileList or RadTileView ? In the RadListBox DragDrop Demo the Selection works correctly on touch devices and the TouchDragTrigger is TapAndHold.
<telerik:RadListBox.DragDropBehavior>
                    <telerik:ListBoxDragDropBehavior AllowReorder="True" telerik:DragDropManager.TouchDragTrigger="TapAndHold" />
                </telerik:RadListBox.DragDropBehavior>
However, please keep in mind that this property is set on the ListBoxDragDropBehavior.


Regards,
Petar Mladenov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
DragAndDrop
Asked by
Olivier
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or