Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Collapse]Tree List
   [Expand]Product Information
   [Expand]Concepts
   [Expand]Visual Elements
   [Collapse]Examples
     How to: Add New Nodes in Code (Bound Mode)
     How to: Bind the ASPxTreeList to Data Created at Runtime
     How to: Calculate Custom Summaries
     How to: Create a Tree in Code (Unbound Mode)
     How to: Create Custom Command Buttons
     How to: Delete Selected Nodes
     How to: Display Summaries
     How to: Display the Customization Window
     How to: Display the File/Folder Tree (Virtual Mode)
     How to: Enable Recursive Selection When Binding at Runtime
     How to: Implement Conditional Formatting
     How to: Init New Nodes
     How to: Initialize Cell Editors
     How to: Obtain Server Data From the Client
     How to: Perform Drag And Drop in Virtual Mode
     How to: Present Data in Cards
     How to: Provide a Context Menu
     How to: Save And Restore the ASPxTreeList's Layout
     How to: Select Nodes That Meet the Specified Criteria
     How to: Sort Nodes Using Custom Rules
     How to: Use the Nodes Iterator
     How to: Validate Edit Form Template Container
     How to: Validate Nodes (Server-Side)
   [Expand]Member Tables
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Perform Drag And Drop in Virtual Mode

If the ASPxTreeList operates in Virtual Mode, you should manually process node drag and drop operations. To do this, you should handle the ASPxTreeList.ProcessDragNode event.

In this example, dragged nodes correspond to files and folders. The ASPxTreeList.ProcessDragNode event is handled to move required files to a new location. Finally, the ASPxTreeList.RefreshVirtualTree method is called to recreate the tree. Don't forget to turn off the default drag-and-drop processing by setting the event parameter's Handled property to true. Otherwise, an exception will be thrown.

How would you rate this topic?​​​​​​​