RadTreeView Drag drop + Caliburn Micro

3 posts, 0 answers
  1. Onyx
    Onyx avatar
    2 posts
    Member since:
    Aug 2013

    Posted 27 Aug 2013 Link to this post

    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. Onyx
    Onyx avatar
    2 posts
    Member since:
    Aug 2013

    Posted 01 Sep 2013 Link to this post

    hey guys any idea? or at least a sample code.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Konrad
    Konrad avatar
    33 posts
    Member since:
    Aug 2010

    Posted 02 Jan 2014 Link to this post

    Same problem, please finally answer!
Back to Top