<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="TreeView_149725_Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <script type="text/javascript">
        function onNodeDropping(sender, eventArgs)
        {
            eventArgs.get_destNode().get_nodes().insert(0, eventArgs.get_sourceNode());
        }
    </script>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div>
        <telerik:RadTreeView 
            ID="RadTreeView1" 
            runat="server"  
            CssClass="treeContainer"  
            AllowNodeEditing="True"  
            EnableDragAndDrop="True"  
            EnableDragAndDropBetweenNodes="True"
            OnClientNodeDropping="onNodeDropping"
            EnableViewState="False" 
            PersistLoadOnDemandNodes="False">
            <CollapseAnimation Duration="100" Type="OutQuint" />
            <ExpandAnimation Duration="100" />
        </telerik:RadTreeView>
    </div>
    </form>
</body>
</html>
