Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
AI-Enhanced UI Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
<%-- simple binding--%>
<
telerik:RadTreeList
runat
=
"server"
ID
"RadTreeList1"
AllowPaging
"true"
PageSize
"3"
DataKeyNames
"EmployeeID"
ParentDataKeyNames
"ReportsTo"
>
</
br
/><
/>
<%-- Advanced binding--%>
"RadTreeList2"
OnNeedDataSource
"RadTreeList2_NeedDataSource"
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
RadTreeList1.DataSource = GetDataTable();
//simple binding
RadTreeList1.DataBind();
}
public
DataTable GetDataTable()
String ConnString = ConfigurationManager.ConnectionStrings[
"ConnectionStringName"
].ConnectionString;
SqlConnection conn =
new
SqlConnection(ConnString);
SqlDataAdapter adapter =
SqlDataAdapter();
adapter.SelectCommand =
SqlCommand(
"SELECT EmployeeID, LastName, FirstName, Title, TitleOfCourtesy, ReportsTo FROM Employees"
, conn);
DataTable myDataTable =
DataTable();
conn.Open();
try
adapter.Fill(myDataTable);
finally
conn.Close();
return
myDataTable;
RadTreeList2_NeedDataSource(
source, TreeListNeedDataSourceEventArgs e)
RadTreeList2.DataSource = GetDataTable();
//Advance binding