繁体   English   中英

在extjs网格4.0中获取textfield cell td

[英]get textfield cell td in extjs grid 4.0

我使用的是extjs 4.0版本。 当我更新extjs网格文本字段值时,我需要将css应用于td。 所以在变化时我需要在变更监听器中获取该单元格的td。

'change': function(textField, newValue, oldValue, eOpts){
}

我累了'this.getEl()'但没有运气。 还有其他指针吗?

我认为最简单的方法是在标题上使用渲染器事件:

{header: ... renderer: fctChangeColor},

function fctChangeColor(currentCellValue, metadata, record, rowIndex, colIndex, myStore )
{
      if(fctValidate(currentCellValue) == false)
        metadata.css = "myNewClass";

      return currentCellValue;

}

暂无
暂无

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

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