Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadTreeView
ID
=
"RadTreeView1"
DataFieldID
"id"
DataFieldParentID
"parent"
DataSourceID
"SqlDataSource1"
DataTextField
"name"
DataValueField
runat
"server"
onnodeclick
"RadTreeView1_NodeClick"
>
</
telerik:RadGrid
"RadGrid1"
"SqlDataSource2"
AutoGenerateColumns
"true"
Visible
"false"
asp:SqlDataSource
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT * FROM tree" runat="server"></
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" runat="server"></
protected
void
RadTreeView1_NodeClick(
object
sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
{
string
text = RadTreeView1.SelectedNode.Text;
SqlDataSource2.SelectCommand =
"select * from tree where name='"
+ text +
"'"
;
RadGrid1.Visible =
true
RadGrid1.Rebind();
}