我有一个带有复选框树的 FormPanel,它是在创建时添加的。现在我想更改面板内所有复选框的通用名称模式。根据 DOM,名称已正确更改,但当我提交表单时,仍会提交旧名称。尝试调用 .doLayout 但没有任何运气。有任何想法吗?
changePredicateName: function (panel, predicateName) {
var ref = this;
this.counter = 0;
panel.cascade(function (o) {
var name = ref.groupId + "." + predicateName + "." + ref.counter + "_value";
if (o instanceofnExt.form.Checkbox) {
o.name = name;
ref.counter++;
} else if (o.titleCheckbox) {
o.titleCheckbox.name = name;
ref.counter++;
}
return true;
});
panel.doLayout();
},