protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!IsPostBack) { RadTreeList1.ExpandToLevel(1); } }
//Finaliza a adição do atendimento na List IncluirItens e atualiza a treeList private void FinalizaAdicao(VProteinas item) { var index = IncluirItens.Count; IncluirItens.Insert(index, item); RadTreeList1.ExpandAllItems(); RadTreeList1.Rebind(); //soma e apresenta total na treeList SomaTotal(); }
override protected Boolean LoadData() { try { RadTreeList1.DataSource = tData.USP_Category_GetForTree(); RadTreeList1.DataBind(); RadTreeList1.ExpandAllItems(); return(true); } catch (Exception ex) { ShowErrorMes("Lỗi hệ thống: " + ex.Message); return(false); } }
protected void RefreshTreeList(bool rebind) { if (rdcGrupoUsuario.SelectedValue != "") { GrupoUsuario gpu = CntLainsaSci.GetGrupoUsuario(int.Parse(rdcGrupoUsuario.SelectedValue), ctx); CntLainsaSci.VerifyPermissions(gpu, ctx); RadTreeList1.DataSource = CntLainsaSci.GetPermissionsViews(gpu); } else { RadTreeList1.DataSource = new List <PermissionView>(); } if (rebind) { RadTreeList1.Rebind(); } }
override protected Boolean LoadData() { try { RadTreeList1.DataSource = tData.USP_Control_GetByPageID_GetTree(int.Parse(sPageID.Value)); RadTreeList1.DataBind(); RadTreeList1.ExpandAllItems(); return(true); } catch (Exception ex) { ShowErrorMes("Lỗi hệ thống: " + ex.Message); return(false); } }
protected void RadTreeList1_DeleteCommand(object sender, TreeListCommandEventArgs e) { TreeListDataItem item = (TreeListDataItem)e.Item; foreach (var child in item.ChildItems) { var index = IncluirItens.IndexOf(IncluirItens.Single(i => i.id == int.Parse(child["id"].Text) && i.id_proteina == int.Parse(child["id_proteina"].Text))); IncluirItens.RemoveAt(index); } IncluirItens.RemoveAt(item.DataItemIndex); //soma e apresenta total na treeList SomaTotal(); RadTreeList1.Rebind(); //btnOk.OnClientClicking = "windowConfirmacao"; }
protected void RefreshGrid(bool need) { if (ddlSelectGroup.SelectedValue == "") { // no group selected RadTreeList1.DataSource = new List <PermissionView>(); if (!need) { RadTreeList1.Rebind(); } } else { // read the appropiate group UserGroup ug = GroupSelected(); CntAriCli.VerifyPermissions(ug, ctx); RadTreeList1.DataSource = CntAriCli.GetPermissionsViews(ug); if (!need) { RadTreeList1.Rebind(); } } }
protected void rdPeriode_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { RadTreeList1.Rebind(); }