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

problem drag and drop example(demo)

1 Answer 57 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Gili
Top achievements
Rank 1
Gili asked on 12 May 2013, 09:14 AM
i took this code from the demos :
http://demos.telerik.com/silverlight/#DragAndDrop/TreeToGrid


<
example:ExampleTemplateSelector x:Key="ExampleTemplateSelector"
                                 CategoryTemplate="{StaticResource CategoryTemplate}"
                                 ProductTemplate="{StaticResource ProductTemplate}" />
<Style TargetType="telerik:RadTreeViewItem" x:Key="TreeViewItemStyle" BasedOn="{StaticResource RadTreeViewItemStyle}">
    <Setter Property="IsExpanded" Value="True" />
    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
    <Setter Property="telerik:DragDropManager.TouchDragTrigger" Value="TapAndHold"/>
</Style>
<!--Note: With this style we make the ListBoxItems draggable:-->
<Style TargetType="ListBoxItem" x:Key="WishlistItemStyle" BasedOn="{StaticResource ListBoxItemStyle}">
    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
    <Setter Property="telerik:DragDropManager.TouchDragTrigger" Value="TapAndHold"/>
</Style>
<Style TargetType="telerik:GridViewRow" x:Key="OrderItemStyle" BasedOn="{StaticResource GridViewRowStyle}">
    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
    <Setter Property="telerik:DragDropManager.TouchDragTrigger" Value="TapAndHold"/>
</Style>

I get  errors :
Property 'TouchDragTrigger' was not found in type 'RadTreeViewItem'.
Property 'TouchDragTrigger' was not found in type 'ListBoxItem'.
Property 'TouchDragTrigger' was not found in type 'GridViewRow'.

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 14 May 2013, 10:20 AM
Hello Gili,

I suspect you are using an older version of our controls. This property is introduced with our Latest binaries to enhance the experience when touch dragging. 

You can just remove it and you will get the plain mouse drag and drop out of the box.

Hope this helps! 

Greetings,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DragAndDrop
Asked by
Gili
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or