Ext JS v2.3.0 Ext.grid.ColumnModel renderer Record 获取列值

场景:设置某一列的值,但是需要获取其他列的值

{"header": '<s:property value="name" />', "width": 110, "sortable": true,"dataIndex": '<s:property value="code" />',
  "renderer":function(id,metaData,record){   return record.get("otherPropertyName"); } }

方式一:

record.data.propertyName

方式二:

record.get("propertyName")

参考链接:

https://docs.sencha.com/extjs/2.3.0/#!/api/Ext.data.Record

原文地址:https://www.cnblogs.com/luoxiaolei/p/9684987.html