protected void CategoryTree_Menu_CategorySelected(object sender, RadTreeNodeEventArgs e) { if (CategoryTree_Menu.Selected_CategoryID != "-1") { Lib.ScriptMgr myScriptMgr = new Lib.ScriptMgr(); GridView_Items.DataSource = myScriptMgr.Get_Scripts(CategoryTree_Menu.Selected_CategoryID, null); GridView_Items.DataBind(); } }
private void ItemList_DataBind() { if (!DataEval.IsEmptyQuery(_category_selected)) { RadTabStrip_Commands.Visible = true; Lib.ScriptMgr myScriptMgr = new Lib.ScriptMgr(); ListView_ItemList.DataSource = myScriptMgr.Get_Scripts(_category_selected, null); ListView_ItemList.DataKeyNames = new string[] { "ScriptID" }; ListView_ItemList.DataBind(); CheckBox chk_SelectAll = (CheckBox)ListView_ItemList.FindControl("chk_SelectAll"); if (chk_SelectAll != null) { chk_SelectAll.Checked = false; } } }