Greetings,
I have a setup in which I want to set the values of cells of a certain column programmatically. The column won't be displayed to the user, so I set Display=false
The grid is a batch mode grid, and I set the values before the user saves the data as follows:
On the server, I get the following error in the BatchEditCommand event handler when I try to access the Commands member of GridBatchEditingEventArgs: "Editor cannot be initialized for column: Dump"
I tried to set Display=true but still the problem happens. Dump is just a simple GridBoundColumn:
I have a setup in which I want to set the values of cells of a certain column programmatically. The column won't be displayed to the user, so I set Display=false
The grid is a batch mode grid, and I set the values before the user saves the data as follows:
grid.add_command(function (sender, args) { if(args.get_commandName() == "BatchEdit") { var tv = grid.get_masterTableView(), bm = grid.get_batchEditingManager(), dumpCellIndex = tableView.getColumnByUniqueName("Dump").get_element().cellIndex; tv.get_dataItems().forEach(function (di) { var row = di.get_element(); if(row._data) bm.changeCellValue(row.cells[dumpCellIndex], row._data.join(";")); }); } });On the server, I get the following error in the BatchEditCommand event handler when I try to access the Commands member of GridBatchEditingEventArgs: "Editor cannot be initialized for column: Dump"
I tried to set Display=true but still the problem happens. Dump is just a simple GridBoundColumn:
<telerik:GridBoundColumn Display="true" DataType="System.String" FilterControlAltText="Filter Dump column" UniqueName="Dump" ReadOnly="false" ForceExtractValue="None"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridBoundColumn>