I have a hierarchical treeview in a formview. Is is possible to data bind to the treeview (two-way)?
ex:
I know you can't do it the way I do it above since "SelectedValue" is readonly. Is there a work around?
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?