Hide/Display groups which have no data/events

2 posts, 0 answers
  1. Kumeri
    Kumeri avatar
    13 posts
    Member since:
    Jul 2018

    Posted 31 Oct 2018 Link to this post


    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.


    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.

  2. Nencho
    Nencho avatar
    1881 posts

    Posted 02 Nov 2018 Link to this post

    Hello Kumeri,

    I am not completely sure that I had understood the scenario that you are trying to achieve. Do you aim to avoid displaying resources area, when no events with this type are created? If so, I think that the following KB could help:


    Please let me know if I had misunderstood your scenario.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top