- Home
- Forum
- Angular - EJ 2
- Selecting Resources from Multiple groups in the Standard Editor
Selecting Resources from Multiple groups in the Standard Editor
Hi,
I ran into the situation that where we want to select people from different groups for an appointment but this does not work right.
Setup:
Angular: 9.1
Syncfusion Schedule package: 18.1.56
Schedule setup: Resources are grouped and are shown in their groups.
<e-resources>
<e-resource
field="resourceId"
title="Resource Name"
name="Resources"
textField="Name"
idField="Id"
[allowMultiple]='allowMultiple'
[dataSource]="resourceDataSource">
</e-resource>
<!-- Because we use multiple groups we have to assign it in a separate resource tag-->
<e-resource
field ="groupId"
title = "Group Name"
name = "Departments"
[dataSource] = "groupDataSource"
textField="Name"
idField="Id"
groupIDField="GroupID">
</e-resource>
</e-resources>
The standard editor is used.
When we select a Group we see the resources belonging to this group. We can select the right resources (persons).
When we also want to select resources from another group in he editor the previous selected names are changing as soon as we select another group.
I searched in the forum an the docs if there was a familiair case or property I was missing but could not find this.
Hopefully there is a simple solution for this.
Regards,
Bob
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
AK
Alagumeena Kalaiselvan
Syncfusion Team
July 2, 2020 12:44 PM UTC
Hi Bob,
Thanks for contacting Syncfusion support.
We have checked your reported query “Selecting resources from multiple groups in the standard editor” and you can select multiple resources by enabling allowMultiple property of the resource. Refer the below code for that.
<e-resources>
<e-resource field='ProjectId' title='Choose Project' [dataSource]='projectDataSource' [allowMultiple]='allowMultiple' name='Projects'
textField='text' idField='id' colorField='color'>
</e-resource>
<e-resource field='TaskId' title='Category' [dataSource]='categoryDataSource' [allowMultiple]='allowMultiple' name='Categories'
textField='text' idField='id' groupIDField='groupId' colorField='color'>
</e-resource>
</e-resources>
Kindly check with shared sample and get back to us, if we misunderstand your requirement
- Share the brief details about your requirement
- Issue depicting image or video
- Reproduce your issue with shared sample
Regards
Alagumeena.K
Marked as answer
TH
Tim Hartog
July 2, 2020 02:23 PM UTC
Hello Alagumeena,
I was indeed missing the allowmultiple property in the second e-resource block.
Thank you for your help.
Regards,
Bob
VM
Vengatesh Maniraj
Syncfusion Team
July 3, 2020 04:34 AM UTC
Hi Bob,
You are most welcome.
Please get in touch with us if you need any further assistance.
Regards,
Vengatesh
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
- Marked answer
-
TH Tim Hartog
- Jul 1, 2020 08:33 AM UTC
- Jul 3, 2020 04:34 AM UTC