DragAndDrop, Touch, and Selection issue

3 posts, 0 answers
  1. Olivier
    Olivier avatar
    2 posts
    Member since:
    Aug 2014

    Posted 08 Sep 2014 Link to this post

    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. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 09 Sep 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 09 Sep 2014 Link to this post

    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.
     
Back to Top