|

楼主 |
发表于 2018-7-27 10:12:01
|
显示全部楼层
父级取消的时候,子级不处理,我通过过滤数据得到想要的数据,想把这些数据都选中,设置怎么没有效果呀
Model.prototype.treeGridRowClick = function(event){debugger;
var queryLocation = this.comp("queryLocation");
var dialogData = this.comp("dialogData");
var treeGrid = this.comp("treeGrid");
var rowid = dialogData.getCurrentRowID();
// alert(rowid);
var locationName = dialogData.getValue("locationName");
var locationCode = dialogData.getValue("locationCode");
var parent = dialogData.getValue("parent");
queryLocation.setFilter("filter11","ZH_EquipmentLocation.parent='"+locationCode+"'");
queryLocation.refreshData();
queryLocation.each(function(p) {debugger;
var row = p.row;
var rowID = row.getID();
treeGrid.setRowChecked=true;
treeGrid.setHeadCheckBox=true;
// treeGrid.setRowChecked(row,true);
// treeGrid.setItemChecked(rowid, true);
// dialogData.setRowChecked(row,true);
// dialogData.grid.setItemChecked(rowid, true);
}); |
|