Grid使用模板(template)出错 (备忘)

来源:互联网 发布:钢笔字 知乎 编辑:程序博客网 时间:2024/06/08 08:20

    onDataChange: function (e) {

        ...

        //由於字段使用了template(template出錯),在onAfterAdd初始化會報錯,因放此處執行
        if (e.action == "add" && dm.masterData[1] && e.tableName == dm.masterData[1].tableName) {
            row.free_flg = 0; // 使用模板(template)字段 

        }

      ... 

   }