Dear Telerik,
I've generated a radgrid programmatically, which includes to enable batch editing and command as below, but my RadGrid_BatchEditCommand never fires? Appreciate for any hints.
I've generated a radgrid programmatically, which includes to enable batch editing and command as below, but my RadGrid_BatchEditCommand never fires? Appreciate for any hints.
for (int i = 0; i<10; i++0)
{
strategy = strategy + Convert.ToString(i);
RadGrid RadGrid_Strategy = new RadGrid();
RadGrid_Strategy.ID = strategy;
RadGrid_Strategy.Skin = "Office2010Blue";
RadGrid_Strategy.GridLines = System.Web.UI.WebControls.GridLines.Both;
RadGrid_Strategy.DataSource = GetDataTableForStrategy(CY, i);
RadGrid_Strategy.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
RadGrid_Strategy.ShowHeader = false;
RadGrid_Strategy.BatchEditCommand += new GridBatchEditEventHandler(RadGrid_BatchEditCommand);
RadGrid_Strategy.MasterTableView.EditMode = GridEditMode.Batch;
RadGrid_Strategy.MasterTableView.BatchEditingSettings.EditType = GridBatchEditingType.Cell;
RadGrid_Strategy.AllowAutomaticUpdates = true;
RadGrid_Strategy.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;
RadGrid_Strategy.MasterTableView.CommandItemSettings.ShowSaveChangesButton = true;
RadGrid_Strategy.MasterTableView.CommandItemSettings.ShowCancelChangesButton = true;
PlaceHolder1.Controls.Add(RadGrid_Strategy);
RadGrid_Strategy.Rebind();
}