我在slickgrid中有一个复选框字段,它使用YesNoCheckboxCellEditor并希望用户确认更改。我尝试向其中添加vildator:myMethod但没有成功。
问问题
220 次
1 回答
0
我的猜测是你必须修改这个函数
this.applyValue = function (item, state) {
item[args.column.field] = state;
};
在你的编辑器中。因此,您只需放置所需的任何条件逻辑,然后在需要时应用值。
this.applyValue = function (item, state) {
var applyValue = (...<your logic goes here>...);
if (!!applyValue){
item[args.column.field] = state;
}
};
于 2012-10-11T13:16:01.880 回答