JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Window › Scheduler Resource › Reply To: Scheduler Resource
June 25, 2021 at 1:09 pm
#101942
yavordashew
Member
Hi kboughaba,
I have edited the code snippet that you have shared so that it achieves the functionality you need for your use case.
resources: SchedulerResource[] = [
{
label: 'Doctors',
value: 'doctorId',
dataSource: [
{
label: 'Andrew Johnson',
id:1,
speciality: 'Anesthesiology',
image: '../../../images/phonebook/andrew.png',
backgroundColor: '#28a745'
}
]
},
{
label: 'Project',
//Instead projectId we set it to doctorId
value: 'doctorId',
dataSource: [
{
label: 'Projet1',
id:1
},
{
label: 'Projet2',
id: 2
}
]
}
];
If you set the value of the resource to doctorId
like in our case the project list will be ‘checked’ too.
Let me know if that works for you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/