All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
TreeView
/
TreeView in FormView
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
1 posts, 0 answers
Justin
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
Close