We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hierarchical Grouping in Scheduler

Thread ID:

Created:

Updated:

Platform:

Replies:

145897 Jul 12,2019 08:56 AM UTC Jul 15,2019 04:52 AM UTC ReactJS 1
loading
Tags: Scheduler
Ankush Sharma
Asked On July 12, 2019 08:56 AM UTC

We have a requirement where we want to show some locations e.g. Location 1, Location2 etc. And below these locations we want to show some sub categories where Location 1 can have Category1, Category2 and Category 3 And Location 2 has Categories Category 2, Category 4 and Category 5. But I am following the demo for Hierarchical Grouping https://ej2.syncfusion.com/react/demos/?&_ga=2.236438017.1200880527.1562575614-1318586625.1561527502#/material/schedule/resource-grouping. Then it is showing all the categories in all the Locations. We want to show categories Location specific.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On July 15, 2019 04:52 AM UTC

Hi Ankush,   
  
Syncfusion greetings. 
 
We suspect that your requirement is to implement two level hierarchy and kindly refer the below sample. 
 
this.projectData = [ 
            { text: 'Lcation 1', id: 1, color: '#cb6bb2' }, 
            { text: 'Lcation 2', id: 2, color: '#56ca85' } 
        ]; 
        this.categoryData = [ 
            { text: 'Category1', id: 1, groupId: 1, color: '#df5286' }, 
            { text: 'Category2', id: 2, groupId: 1, color: '#7fa900' }, 
            { text: 'Category3', id: 5, groupId: 1, color: '#df5286' }, 
            { text: 'Category4', id: 3, groupId: 2, color: '#ea7a57' }, 
            { text: 'Category5', id: 4, groupId: 2, color: '#5978ee' },    
            { text: 'Category6', id: 6, groupId: 2, color: '#00bdae' } 
        ]; 
 
 
Regards, 
Karthi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon