Wijmo Flexgrid how to get number of rows pasted/Get index of row where data is pasted

931 views Asked by At

I want to change data while pasting. I am pasting a number of rows and I want to change on pasted data. I am trying on pasting event but I am not able to get the index of pasted rows.

1

There are 1 answers

0
assax24 On

You can use the event data that was sent to the pasting event:

grid.pasting.addHandler(function(s, e) {
  let row = e.row; // gets the starting row index
  let rng = e.range; // gets the whole cell range which were affected
});