problem drag and drop example(demo)

2 posts, 0 answers
  1. Gili
    Gili avatar
    14 posts
    Member since:
    Jan 2013

    Posted 12 May 2013 Link to this post

    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'.

  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 14 May 2013 Link to this post

    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.

  3. DevCraft banner
Back to Top