Using the Drag-and-Drop Within One Tree
In This Topic
-
Create a new ASP.NET Web Application.
-
In the Visual Studio Toolbox, double-click on a standard Panel control to add it to the main content of your page.
-
Add the following markup within the <asp:Panel> tags to create the list that will become the tree.
-
Use the Panel control's smart tag to open the Extender Wizard by clicking Add Extender.
-
Select the C1TreeExtender from the list and click OK to add it to the application.
-
Select View | Properties from the Visual Studio menu and use the drop-down list at the top of the Properties window to select Panel1_C1TreeExtender.
-
Locate the C1TreeExtender.AllowDrag property in the list and set it to true.
-
Locate the C1TreeExtender.AllowDrag property in the list and set it to true.
-
Press F5 to run your application. You will be able to rearrange the node structure of the tree using the drag-and-drop operation.