Hi Nikita,
Thanks for the update.
We suspect that resources id is not mapped correctly in your data collection which could be the cause, kindly refer below.
dataSource: [{
Id: 1,
Subject: 'Explosion of Betelgeuse Star',
StartTime: new Date(2018, 3, 4, 9, 0),
EndTime: new Date(2018, 3, 4, 10, 0),
ProjectId: 1,
SubProjectId: 3,
TaskId: 6
}]
The child resource collection should be defined immediate next to its parent collection. For example, Nancy collection should be defined with in subProjectDataSource like below.
public group: GroupModel = {
resources: ['Projects', 'SubProjects', 'Categories']
};
public projectDataSource: Object[] = [
{ text: 'PROJECT 1', id: 1, color: '#cb6bb2' },
{ text: 'PROJECT 2', id: 2, color: '#56ca85' }
];
public subProjectDataSource: Object[] = [
{ text: 'SUB-PROJECT1', id: 3, color: '#df5286', groupId: 1 },
{ text: 'SUB-PROJECT2', id: 4, color: '#df5286', groupId: 2 },
{ text: 'Nancy', id: 5, groupId: 1, color: '#df5286' }
];
public categoryDataSource: Object[] = [
{ text: 'Steven', id: 6, groupId: 3, color: '#7fa900' },
{ text: 'Robert', id: 7, groupId: 4, color: '#ea7a57' },
{ text: 'Smith', id: 8, groupId: 4, color: '#5978ee' }
];
Regards,
Karthi