Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/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
Grid GXT3如何获取已编辑单元格的行_Grid_Gxt - Fatal编程技术网

Grid GXT3如何获取已编辑单元格的行

Grid GXT3如何获取已编辑单元格的行,grid,gxt,Grid,Gxt,在GridInlineEditing网格中编辑单元格后,我要做的是获取刚刚编辑的行的模型(或记录,不管是哪一行) 我尝试将ValueChangeHandler附加到编辑器,但ValueChangeEvent没有上下文,而且无论我编辑哪一行,源代码似乎都是相同的。List selectedItems=editorGrid.getSelectionModel().getSelection(); List<> selectedItems = editorGrid.getSelec

在GridInlineEditing网格中编辑单元格后,我要做的是获取刚刚编辑的行的模型(或记录,不管是哪一行)

我尝试将ValueChangeHandler附加到编辑器,但ValueChangeEvent没有上下文,而且无论我编辑哪一行,源代码似乎都是相同的。

List selectedItems=editorGrid.getSelectionModel().getSelection();
    List<> selectedItems =  editorGrid.getSelectionModel().getSelection();
       //iterate selected items
      int index = editorGrid.getStore().indexOf(selectedItem);
//迭代选定的项目 int index=editorGrid.getStore().indexOf(selectedItem);