private void delButton_Click(object sender, EventArgs e) { var btn = (Button)sender; var container = (GridGroupHeaderItem)btn.NamingContainer; DeleteItemsForCategory(container.DataCell.Text.Replace("Category: ", string.Empty)); CacheGrid.Rebind(); }
protected virtual void Dispose(bool disposing) { if (disposing) { ErrorPanel?.Dispose(); ErrorMessage?.Dispose(); MainPanel?.Dispose(); ServerName?.Dispose(); MemoryAllocation?.Dispose(); RadAjaxManager?.Dispose(); CacheGrid?.Dispose(); } }