2016-11-15 19 views
0

我正在尝试获取最近更新的单元格的rowIndex。 你可以找到我下面的方法:屏蔽ui网格如何通过sui-updated-marker找到rowIndex

getCustomEditorValue: function (e) { 
       e.value = $("#qntyBox").val(); 
       if (!isNaN(e.value)) { 
        console.log(e.target.contentTable.find('.sui-updated-marker').get(0).rowIndex); 
       } 
      } 

,但它显示我在控制台输出不确定

console.log(e.target.contentTable.find('.sui-updated-marker')); 

给我

Object { length: 0, prevObject: Object, context: undefined, selector: ".sui-updated-marker" } 

任何帮助将是明显的。谢谢。

回答

1

简单地改变

e.target.contentTable.find('.sui-updated-marker').get(0).rowIndex; 

e.target.contentTable.find(".sui-editable-cell").get(0).parentNode.rowIndex; 
+0

非常感谢您的支持。 :) –