【发布时间】:2011-04-05 13:54:20
【问题描述】:
在extjs中,对于record对象,是否有awy获取特定的数据索引。我需要的是这个: 我有一个格式化小数的渲染器函数。如果记录的 dataIndex 是“dollaramount”,我以一种方式格式化。如果有别的,我用另一种方式格式化。 所以函数是:
decimalsRenderer: function(value, metaData, record, rowIndex, colIndex, store){
if (record.data.index =='amount')
// format using 2 decimals
else
//format using 3 decimals
},
但是record.data.index 是不允许的。我该怎么做?
【问题讨论】:
标签: extjs