private void ShowTreeNodes_TabList(string selected_value)
        {
            int           PortalId = Convert.ToInt32(ddlPortalList.SelectedValue);
            bool          IsSecure = chkIsSecure.Checked;
            TabController tabs_obj = new TabController();
            DataTable     dtNodes  = tabs_obj.GetActiveListByPortalIdIsSecure(PortalId, IsSecure);

            ddlParentTab.Items.Clear();
            ddlParentTab.DataSource = dtNodes;
            RecursiveFillTree(dtNodes, 0);

            ddlParentTab.Items.Insert(0, new ListItem("- Root -", "0")); //DROPDOWNLIST
            ddlParentTab.SelectedValue = selected_value;
        }
Esempio n. 2
0
        private void ShowTreeNodes_TabList()
        {
            int           PortalId = Convert.ToInt32(ddlPortalList.SelectedValue);
            TabController tabs_obj = new TabController();
            DataTable     dt       = tabs_obj.GetActiveListByPortalIdIsSecure(PortalId, IsSecure);

            ddlParentTab.Items.Clear();
            ddlParentTab.DataSource = dt;
            RecursiveFillTree(dt, 0);

            ddlParentTab.Items.Insert(0, new ListItem("- Root -", "0")); //DROPDOWNLIST
            ddlParentTab.SelectedIndex = 0;
            ddlParentTab.AutoPostBack  = true;
        }