TreeView in FormView

1 posts, 0 answers
  1. Justin
    Justin avatar
    18 posts
    Member since:
    Oct 2008

    Posted 18 May 2009 Link to this post

    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?
Back to Top