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

RadTreeView Drag drop + Caliburn Micro

2 Answers 36 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Onyx
Top achievements
Rank 1
Onyx asked on 27 Aug 2013, 10:14 AM
Hi I have been browsing the forums for quite sometimes now.. I am trying to figure out how to attach RadDragAndDropManager.DropQuery
to my method under my view model. I am using Caliburn micro 

<telerik:RadTreeView Name="Nodes"
                     IsEditable="True"
                     IsLoadOnDemandEnabled="True"
                     ItemTemplate="{StaticResource ItemTemplate}"
                     ItemEditTemplate="{StaticResource EditTemplate}"
                     IsDragDropEnabled="True"
                     telerik:TreeViewSettings.DragDropExecutionMode="New"
 
                     telerik:RadDragAndDropManager.AllowDrop="True"
                     telerik:RadDragAndDropManager.AllowDrag="True" ...>
 
 
    <i:Interaction.Triggers>
        <commands:DragDropQueryRoutedEventTrigger EventName="DropQuery" EventOwnerType="{x:Type telerik:RadDragAndDropManager}">
            <micro:ActionMessage MethodName="OnDropQuery" >
                <micro:Parameter Value="$eventArgs" />
            </micro:ActionMessage>
        </commands:DragDropQueryRoutedEventTrigger>
    </i:Interaction.Triggers>
 
</telerik:RadTreeView>

my method is something like this:

public void OnDropQuery(DragDropQueryEventArgs args)
{
    ...
    ...
    args.Handled = true;
}

but method is not being called... any ideas?

2 Answers, 1 is accepted

Sort by
0
Onyx
Top achievements
Rank 1
answered on 02 Sep 2013, 03:32 AM
hey guys any idea? or at least a sample code.
0
Konrad
Top achievements
Rank 1
answered on 02 Jan 2014, 10:10 AM
Same problem, please finally answer!
Tags
DragAndDrop
Asked by
Onyx
Top achievements
Rank 1
Answers by
Onyx
Top achievements
Rank 1
Konrad
Top achievements
Rank 1
Share this question
or