【发布时间】:2012-10-14 07:25:43
【问题描述】:
我尝试将字段值设置为数组类型的值,但网格无法显示该行。我的测试代码如下所示:
Ext.onReady(function()
{
new Ext.grid.property.Grid(
{
customRenderers:{Test:function(v)
{
return Ext.Array.sum(v);
}},
source:{Test:[1,2,3]},
renderTo:Ext.getBody()
});
});
但如果字段值为其他类型,则显示该行。
Ext.onReady(function()
{
new Ext.grid.property.Grid(
{
customRenderers:{Test:function(v)
{
return Ext.Array.sum(v);
}},
source:{Test:6},
renderTo:Ext.getBody()
});
});
属性网格可以自定义渲染数组值吗?
提前感谢您的帮助!
【问题讨论】:
标签: arrays extjs propertygrid renderer