Hi ,
i have datatable which contain 3 company name and i want to add employees respective to that company below company name as childs(dynamically),
My Code
how can i do that
Thanks
i have datatable which contain 3 company name and i want to add employees respective to that company below company name as childs(dynamically),
My Code
protected void Page_Load(object sender, EventArgs e) { int UserId = Convert.ToInt32(Session["UserId"].ToString()); int RoleId = Convert.ToInt32(Session["RoleId"].ToString()); dtParentNode = ObjGlobas.BindTreeView_Test(UserId,RoleId); RadTreeView1.DataSource = dtParentNode; RadTreeView1.DataFieldID = "CompId"; RadTreeView1.DataTextField = "CompName"; RadTreeView1.DataBind(); BindToDataTable(); }<telerik:RadTreeView ID="RadTreeView1" runat="server" Font-Names="Verdana"> <DataBindings> <telerik:RadTreeNodeBinding Expanded="True"></telerik:RadTreeNodeBinding> </DataBindings> </telerik:RadTreeView>how can i do that
Thanks