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
  • 23953
    Offline posted

    Hi,
    Your code looks good.
    I created a sample and it works for me. It is attached to this forum post.
    The problem should be somewhere else, maybe other part of configuration.
    What version(and build number) of NA for jQuery controls do you use?
    In which browser you are experiencing the issue?

    Best regards,
    Martin Pavlov
    Infragistics, Inc.

    igGridUpdating.zip
Reply Children