示例#1
0
        protected void CategoryTree_Menu_CategorySelected(object sender, RadTreeNodeEventArgs e)
        {
            if (CategoryTree_Menu.Selected_CategoryID != "-1")
            {
                Lib.RichTextMgr myRichTextMgr = new Lib.RichTextMgr();

                GridView_Items.DataSource = myRichTextMgr.Get_RichTexts(CategoryTree_Menu.Selected_CategoryID, null);
                GridView_Items.DataBind();
            }
        }
        private void ItemList_DataBind()
        {
            if (!DataEval.IsEmptyQuery(_category_selected))
            {
                RadTabStrip_Commands.Visible = true;

                Lib.RichTextMgr myRichTextMgr = new Lib.RichTextMgr();
                ListView_ItemList.DataSource   = myRichTextMgr.Get_RichTexts(_category_selected, null);
                ListView_ItemList.DataKeyNames = new string[] { "RichTextID" };
                ListView_ItemList.DataBind();

                CheckBox chk_SelectAll = (CheckBox)ListView_ItemList.FindControl("chk_SelectAll");
                if (chk_SelectAll != null)
                {
                    chk_SelectAll.Checked = false;
                }
            }
        }