@page "/tree-dragdrop"

<RadzenText TextStyle="TextStyle.H2" TagName="TagName.H1" class="rz-pt-8">
    Tree Drag & Drop
</RadzenText>
<RadzenText TextStyle="TextStyle.Subtitle1" TagName="TagName.P" class="rz-pb-4">
    Custom Tree items drag & drop logic.
</RadzenText>

<RadzenText TextStyle="TextStyle.Subtitle2" TagName="TagName.P" class="rz-pb-4">
    In this demo the <strong>Employees</strong> hierarchy allows dragging non-root employees to reassign them to different managers using <code>ItemRender</code> with HTML5 drag events, preventing invalid operations (dragging to self, current parent, or children), and saving changes to the database via Entity Framework.
</RadzenText>

<RadzenExample ComponentName="Tree" Example="TreeDragDrop">
    <TreeDragDrop />
</RadzenExample>
