Tree to Grid Drag and Drop

This demo illustrates how to implement drag-and-drop functionality between a smartTree and a smartGrid. Users can drag items from the tree and drop them onto the grid to add new rows based on the tree item data. The demo also demonstrates how to handle drag-and-drop events, customize the data being transferred, and provide visual feedback during the drag operation. In this example, the tree represents a membership hierarchy with different levels (Gold, Silver, Bronze) and associated athletes. When an athlete is dragged from the tree and dropped onto the grid, a new row is created in the grid with the athlete's information, including their name, team, and membership level. The grid can be configured to allow further editing of the added rows or to display additional details as needed.

🏅Gold Members Athletes Anna Svensson
Sweden Cross-Country Ski
Maxim Kovalev
Russia Ice Hockey
Olivia Brown
Canada Alpine Ski
Lucas Dubois
France Bobsled
Hanna Weber
Switzerland Curling
Daniel Kim
South Korea Short Track
Laura Fischer
Germany Biathlon
🥈Silver Members Athletes Lars Petersen
Norway Biathlon
Sofia Müller
Germany Luge
Jakob Larsen
Denmark Skeleton
Mia Johnson
USA Freestyle Skiing
Sophia Andersson
Norway Ski Jumping
Coaches Mats Ekström
Sweden Alpine Ski
🥉Bronze Members Emily Chen
China Figure Skating
Kaito Tanaka
Japan Snowboarding
Elena Rossi
Italy Short Track Speed Skating
Nikolai Petrov
Russia Speed Skating
Isabella Moretti
Italy Snowboard
Henrik Jørgensen
Denmark Ice Hockey