简体   繁体   English

Wijmo Flexgrid 如何获取粘贴的行数/获取粘贴数据的行的索引

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

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.我正在尝试粘贴事件,但无法获取粘贴行的索引。

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
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM