This is a migrated thread and some comments may be shown as answers.

TreeView in FormView

0 Answers 39 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 18 May 2009, 03:14 PM
I have a hierarchical treeview in a formview.  Is is possible to data bind to the treeview (two-way)?

ex:

               
                <telerik:RadTreeView ID="rtvCategories" runat="server" 
                    DataSourceID="ldsCategories"  
                    DataFieldID="ID" DataFieldParentID="ParentID" 
                    DataTextField="Name" DataValueField="ID" 
                    SelectedValue='<% Bind("CategoryID") %>'
                </telerik:RadTreeView> 
                <asp:LinqDataSource ID="ldsCategories" runat="server"  
                    ContextTypeName="DataAccess.DataContext" TableName="Categories" > 
                </asp:LinqDataSource>       

I know you can't do it the way I do it above since "SelectedValue" is readonly.  Is there a work around?

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Justin
Top achievements
Rank 1
Share this question
or