Пример #1
0
        protected void PageCommand_Normal_PageIndex_DeletePageClick(object sender, EventArgs e)
        {
            //PageShow_Page.PageIndexID = "-1";

            PageList_Index.Page_CategoryID = droplist_PageFolder.SelectedValue;
            PageList_Index.Control_Init();

            PageMenuList_PageIndex.Page_CategoryID = droplist_PageFolder.SelectedValue;
            PageMenuList_PageIndex.LoadMenus();

            MultiView_Pages.SetActiveView(View_ListPage);
        }
Пример #2
0
        protected void PageMenuList_PageIndex_PageIndexSelected(object sender, EventArgs e)
        {
            if (PageMenuList_PageIndex.Selected_PageIndexID != "-1")
            {
                // Switch to page view
                Active_PageShow_Page(PageMenuList_PageIndex.Selected_PageIndexID);
                MultiView_Pages.SetActiveView(View_ShowPage);
            }
            else
            {
                PageList_Index.Page_CategoryID = droplist_PageFolder.SelectedValue;
                PageList_Index.Control_Init();

                MultiView_Pages.SetActiveView(View_ListPage);
            }

            PageCommand_Normal_PageIndex.PageIndexID = PageMenuList_PageIndex.Selected_PageIndexID;
            PageCommand_Normal_PageIndex.PageIndex_Selected();
        }
Пример #3
0
        protected void PageMenu_PageIndex_PageIndexSelected(object sender, RadTreeNodeEventArgs e)
        {
            if (PageMenu_PageIndex.Selected_PageIndexID != "-1")
            {
                // Switch to page view
                Active_PageShow_Page(PageMenu_PageIndex.Selected_PageIndexID);
                MultiView_Pages.SetActiveView(View_ShowPage);
            }
            else
            {
                PageList_Index.Page_CategoryID = "1,2";
                PageList_Index.Control_Init();

                MultiView_Pages.SetActiveView(View_ListPage);
            }

            PageCommand_Live_PageIndex.PageIndexID = PageMenu_PageIndex.Selected_PageIndexID;
            PageCommand_Live_PageIndex.PageIndex_Selected();
        }
Пример #4
0
        protected void btn_Show_PageCategory_Click(object sender, EventArgs e)
        {
            switch (droplist_PageFolder.SelectedValue)
            {
            case "1":
                PageMenu_PageIndex.LoadRootNodes();

                PageCommand_Live_PageIndex.PageIndexID = "-1";
                PageCommand_Live_PageIndex.PageIndex_Selected();

                PageMenu_PageIndex.Visible           = true;
                PageMenuList_PageIndex.Visible       = false;
                PageCommand_Live_PageIndex.Visible   = true;
                PageCommand_Normal_PageIndex.Visible = false;

                // Reset Page List
                PageList_Index.Page_CategoryID = "1,2";
                PageList_Index.Control_Init();

                break;

            default:
                PageMenuList_PageIndex.Page_CategoryID = droplist_PageFolder.SelectedValue;
                PageMenuList_PageIndex.LoadMenus();

                PageCommand_Normal_PageIndex.PageIndexID = "-1";
                PageCommand_Normal_PageIndex.PageIndex_Selected();

                PageMenuList_PageIndex.Visible       = true;
                PageMenu_PageIndex.Visible           = false;
                PageCommand_Live_PageIndex.Visible   = false;
                PageCommand_Normal_PageIndex.Visible = true;

                // Reset Page List
                PageList_Index.Page_CategoryID = droplist_PageFolder.SelectedValue;
                PageList_Index.Control_Init();

                break;
            }

            MultiView_Pages.SetActiveView(View_ListPage);
        }
Пример #5
0
        private void Page_Controls()
        {
            // Switch to page view
            MultiView_Pages.SetActiveView(View_ShowPage);

            // Check _pageindexid
            string _pageindexid = Request["PageIndexID"];

            if (!DataEval.IsEmptyQuery(_pageindexid))
            {
                Active_PageShow_Page(_pageindexid);
            }
            else
            {
                _pageindexid = "-1";
                PageList_Index.Page_CategoryID = "1,2";
                PageList_Index.Control_Init();
                MultiView_Pages.SetActiveView(View_ListPage);
            }

            // Expand the tree node and select the node
            PageMenu_PageIndex.Selected_PageIndexID = _pageindexid;
            PageCommand_Live_PageIndex.PageIndexID  = _pageindexid;

            // Init PageMenu List
            PageMenu_PageIndex.Visible     = true;
            PageMenuList_PageIndex.Visible = false;

            // Init PageCommand List
            PageCommand_Live_PageIndex.Visible   = true;
            PageCommand_Normal_PageIndex.Visible = false;

            // Bind Page Folders
            PageMgr myPageMgr = new PageMgr();

            droplist_PageFolder.DataSource     = myPageMgr.Get_Page_Categories();
            droplist_PageFolder.DataTextField  = "Name";
            droplist_PageFolder.DataValueField = "Page_CategoryID";
            droplist_PageFolder.DataBind();
        }