Completed
Last Updated: 01 Aug 2014 06:49 by ADMIN
ADMIN
Telerik Admin
Created on: 24 Oct 2012 18:48
Category: TreeView
Type: Feature Request
6
TreeView: Allow cancelling a drag operation originating from certain items
Allow cancelling a drag operation originating from certain items - basically the customers need to disable the drag operation on some items.
====
Here is a possible solution with handling DragInitialize
 
DragDropManager.AddDragInitializeHandler(this.tree, this.OnDragInitialize, true);

 private void OnDragInit(object sender, DragInitializeEventArgs e)
        {
            if (((e.OriginalSource as RadTreeViewItem).Header == "B1")
            {
                e.Data = null;
                e.DragVisual = null;
            }
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments