无法在Extjs中的Grid内渲染Empty(null)列

时间:2017-01-09 09:13:54

标签: javascript extjs4 extjs4.2 extjs5

我正在使用Extjs在网格中渲染一些信息。列属性类似于:

SEValue: {
        dataIndex: "SEValue",
        header: MCW.lr.s_lbl_sevalue,
        hidden: false,
        renderer: MCW.common.DeviceHelper.renderSEValue,
        infoGroup: 30
    },

下面的方法用于处理渲染值:

MCW.common.DeviceHelper.renderSEValue = function (value) {
    if (value) return value;
   return "Not Available";
};

问题在于,无论何时列值为''或在DB中为空,它都不显示该列,如果有任何值,则显示该列。

1 个答案:

答案 0 :(得分:0)

M.B。需要在字段dataIndex: "SEValue",中绘制列的值集allowNull = true