Hi,
We are using the scheduler control with two resources.
resources: [
{
field: "company"'
name: "Company",
dataSource: [
{ text: "Company 1", value: 1, color: "#6eb3fa" },
{ text: "Company 2", value: 2, color: "#f58a8a" }
],
title: "Company"
},
{
field:
"employee",
name: "Employee",
dataSource: [
{ text: "Alex", value: 1, color: "#f8a398" },
{ text: "Bob", value: 2, color: "#51a0ed" },
{ text: "Charlie", value: 3, color: "#56ca85" }
],
title: "Employee"
}
]
And we use the two resources to group the scheduler.
group: {
resources: "Company", "Employee"],
orientation: "vertical"
}
But in our scenario we do not have employees who work for
more than one company. There is an one-one mapping between the
employee-company.
So I would like to if there is a possibility to
hide/not-display or disable the group catergories created without data.
Example:
Company
Employees
1
Alex, Bob
2
Charlie, Daphne
So I would like to hide the groups 1-Charlie, 1-Daphne and
2-Alex, 2-Bob in the scheduler as there 4 section will always be empty.