Skip to content

dxstanley/treelist-how-to-load-data-from-a-database-in-virtual-mode-and-implement-drag-and-drop-e4837

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

TreeList - How to load data from a database in virtual mode and implement drag-and-drop

Virtual mode is useful if there's a lot of data and it's not necessary or impossible to create a tree at once. To implement virtual mode for the TreeList extension, a specifically parameterized BindToVirtualData method can be used. The method's parameters refer to delegate methods that can be declared as static within a model class. For this, a special TreeListVirtualModeHelper class with the required methods was created. To implement the drag-and-drop functionality, it's necessary to define the SettingsEditing.NodeDragDropRouteValues property.

Note that node dragging is an editing operation, because while changing the node's position, its parent row identificator changes. The MoveNode method was created to accept changes on the controller.


About

.NET, ASP.NET MVC, MVC TreeList

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.3%
  • C# 9.8%
  • HTML 5.7%
  • Classic ASP 0.2%