可以使用Tree的onNodeSelected事件來控制, 如下:
function tvMaster_onNodeSelected(event, node)
{
var gID = node.row.GROUPID;
var schedule = $('#Schedule1');
if (gID == '00') {
schedule.schedule('setWhere',"1=1");
}
else {
schedule.schedule('setWhere',"部門='"+gID+"'");
}
}