Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Multiple cells of a column updated incorrectly
posted

 When select multiple cells in a column and press "enter" to update these cells, if selection is from top to bottom, one more unselected cell on the top is also updated. If selection is from the bottom to top, the correct number of cells updated but updated cells are not the selected.

Is there anything wrong in the code?

 

Thanks,

 

*************************************

name:'Updating',

 enableAddRow:true,

 editMode: "cell",

 startEditTriggers: "dblclick,F2, enter",

 editCellEnded: editCellEndedHandler,

...

function editCellEndedHandler(event, args) {

  if (args.value != args.oldValue && args.value != null) {     

  var columnKey = args.columnKey;

  var rowIndex = args.rowID;

  var value = args.value;

  var cells = $('#grid').igGridSelection('selectedCells');

  var len = cells.count();

  for (var i = 0; i < len; i++) {

    var cell = cells[i];

    if (rowIndex != cell.rowIndex) {

                        $("#grid").igGridUpdating("setCellValue", cell.rowIndex, cell.columnKey, value);

         }

      }

   }

}

*************************

Parents Reply Children
No Data