Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 如何知道已删除行的行索引_Extjs - Fatal编程技术网

Extjs 如何知道已删除行的行索引

Extjs 如何知道已删除行的行索引,extjs,Extjs,我有一个extJS网格。我正在从网格中删除一行。在删除操作完成后,是否可以通过任何方式找到要从网格中删除的行。您可以挂接到与网格关联的存储的删除事件。 来自ExtJs 6.2.1文档 从该存储中删除一个或多个记录时激发 因此,您可以执行以下操作 var store = grid.getStore(); store.on('remove', function(store, records, index, isMove){ // your logic });

我有一个extJS网格。我正在从网格中删除一行。在删除操作完成后,是否可以通过任何方式找到要从网格中删除的行。

您可以挂接到与网格关联的存储的
删除事件。
来自ExtJs 6.2.1文档

从该存储中删除一个或多个记录时激发

因此,您可以执行以下操作

var store = grid.getStore();
store.on('remove', function(store, records, index, isMove){
    // your logic
});