or
public List<string> BindNodes{ get { List<string> dataNodes = new List<string>(); dataNodes.Add("item1"); dataNodes.Add("item2"); dataNodes.Add("item3"); return dataNodes; }}protected void Page_Load(object sender, EventArgs e){ if (!Page.IsPostBack) BindTree();}private void BindTree(){ List<string> data= BindNodes; for (int i = 0; i < data.Count; i++) LoadRecursive(data[i], null);}private void LoadRecursive(string item, RadTreeNode parentNode){ if (parentNode == null) { RadTreeNode childNode = new RadTreeNode(); childNode.Value = "5"; childNode.Text = item; childNode.Category = "category1"; childNode.ExpandMode = TreeNodeExpandMode.ClientSide; tree.Nodes.Add(childNode); parentNode = childNode; } List<string> secondList= new List<string>(); secondList.Add("sec1"); secondList.Add("sec2"); for (int i = 0; i < secondList.Count; i++) { RadTreeNode childNode = new RadTreeNode(); childNode.Value = "5"; childNode.Text = secondList[i]; childNode.Category = "category2"; childNode.ExpandMode = TreeNodeExpandMode.ClientSide; parentNode.Nodes.Add(childNode); //LoadRecursive(subSite[i], childNode); } }protected void tree_NodeClick(object sender, RadTreeNodeEventArgs e){ switch (tree.SelectedNode.Category.ToString()) { case "category1": Response.Redirect("~/Member/Cat1.aspx?id=" + tree.SelectedValue); break; case "category2": Response.Redirect("~/Member/Cat2.aspx?id=" + tree.SelectedValue); break; }}<telerik:RadComboBox ID="RadComboBox1" runat="server"DataTextField="Code" Height="100px"DataValueField="ClientID" DataSourceID="SqlDataSource1" Filter="StartsWith"DropDownWidth="500px" ShowDropDownOnTextboxClick="False"EnableVirtualScrolling="true" ShowMoreResultsBox="true"HighlightTemplatedItems="True" EnableAutomaticLoadOnDemand="true"AutoPostBack="True" EmptyMessage="Enter here"OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"ItemsPerRequest="10" LoadingMessage="Searching..." MaxHeight="300px"ShowWhileLoading="False" Width="300px" ExpandDirection="Down"></telerik:RadComboBox>
using Telerik.Reporting; /// <summary> /// Summary description for VersionHistory. /// </summary> public partial class RptVersionHistory : Report { public RptVersionHistory(DataTable dtable ) { // // Required for telerik Reporting designer support // InitializeComponent(); this.textBox8.Name = "Title"; this.textBox2.Name = "Version"; this.textBox3.Name = "Created By"; this.textBox7.Name = "Created Date"; this.textBox5.Name = "Modified By"; this.textBox4.Name = "Modified Date"; this.textBox1.Name = "Title"; this.DataSource = dtable; // // TODO: Add any constructor code after InitializeComponent call // }if (!this.IsPostBack) { InstanceReportSource reportSource = new InstanceReportSource { ReportDocument = new RptVersionHistory(this.DataTable) }; this.ReportViewer1.ReportSource = reportSource; }