Profile Picture

NTreeViewEx Drag and Drop

Posted By mouloud djamah 2 Years Ago
Author
Message
mouloud djamah
General Posted 2 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 5, Visits: 48
When setting the property TreeViewEx.ItemDragDropMode to General, the Drag and Drop works well. But I want to disable this default behavior and use my own Drag and Drop method by managing the events : ItemBeginDrag, ItemDrag and ItemDragComplete. But the default behavior is still applyed. How to disable it?.
Thank you  

Nevron Support Team
Posted 2 Years Ago
View Quick Profile
Supreme Being

Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)Supreme Being (3,594 reputation)

Group: Moderators
Last Active: Yesterday @ 6:33 AM
Posts: 2,710, Visits: 2,626
Hello mouloud djamah,

To cancel the default drag and drop behavior of NTreeViewEx control you need to attach to ItemDrag event and in the event handler you have to set Handled property of NLightUIItemDragDropEventArgs parameter to true.
Then you can implement your custom drag and drop behavior.

I hope this helps.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic