protected void AjaxManager_Request(object sender, AjaxRequestEventArgs e) { RadTreeNodeEventArgs tne;// = new RadTreeNodeEventArgs(RadTreeView1.SelectedNode); switch (e.Argument) { case "XoaNV": var dt = _entities.DeleteEmployeeByIDNhanVien((Int32)Session["idNV"]); RadGrid1.Rebind(); tne = new RadTreeNodeEventArgs(RadTreeView1.SelectedNode); RadTreeView1_Nodeclick(sender, tne); break; case "RebindGrid": var dtRebind = new object(); RadTreeNode tn = RadTreeView1.SelectedNode; if (tn.Level.Equals(0)) { dtRebind = _entities.GetAllCV(); } else { dtRebind = _entities.GetCVByIDToChuc(Int32.Parse(tn.Value)); } RadGrid1.DataSource = dtRebind; RadGrid1.DataBind(); //if (RadGrid1.Items.Count > 0) { FillCurrentEmployeeDetail((int)Session["idNV"]); } //foreach (GridDataItem item in RadGrid1.Items) //{ // if (item.RowIndex == 2) // { // item.Selected = true; // } //} break; } }