Hi,
I am fairly new to ASP.NET. I am having a bit of difficulty trying to use the treeview drag and drop as a means of ordering pages.
The use case is to allow the user to have the ability drag a node and move it to a new location in the same control and then save to the database.
My database structure is the same as the rad menu example...
Table: tblPages
Column: PageID
Column: ParentID
Column: PageTitle
Here is my control setup.
<telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="True" DataFieldID="PageID"
DataFieldParentID="ParentID" DataSourceID="SqlDataSource1" DataTextField="PageTitle"
Skin="Web20">
<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>
<ExpandAnimation Duration="100"></ExpandAnimation>
</telerik:RadTreeView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [tblPages]"></asp:SqlDataSource>
I have nothing in my code behind. I tried using the examples but can't get anything to work without errors in VS 2008, complaining about the code.
Any help in a direction or pointing to a sample that is related to my goal would be great. I have lost what hair I had left from trying to work with the demos. : (
I am fairly new to ASP.NET. I am having a bit of difficulty trying to use the treeview drag and drop as a means of ordering pages.
The use case is to allow the user to have the ability drag a node and move it to a new location in the same control and then save to the database.
My database structure is the same as the rad menu example...
Table: tblPages
Column: PageID
Column: ParentID
Column: PageTitle
Here is my control setup.
<telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="True" DataFieldID="PageID"
DataFieldParentID="ParentID" DataSourceID="SqlDataSource1" DataTextField="PageTitle"
Skin="Web20">
<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>
<ExpandAnimation Duration="100"></ExpandAnimation>
</telerik:RadTreeView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [tblPages]"></asp:SqlDataSource>
I have nothing in my code behind. I tried using the examples but can't get anything to work without errors in VS 2008, complaining about the code.
Any help in a direction or pointing to a sample that is related to my goal would be great. I have lost what hair I had left from trying to work with the demos. : (