Grouped Resources Text
Hi,
In our project we display restaurant bookings grouped by resource (table). In this example displayed below we have a booking which takes up two tables (resources). Is it possible to change the text ( Alex Whittle - 2 guests - 90 Minutes - with Tables 23 28 ) displayed for just one of the tables?
Hi Alex,
It appears that you are experiencing an issue where the same event is being rendered across multiple resources. This behavior is typically observed with shared events. When an event is shared with two or more resources, it is rendered multiple times.
To address this, please review your data source, specifically the resourceId field. If multiple IDs are mapped to the same event, this could be causing the issue. To resolve this, ensure that each event is associated with a single resource ID.
For more information on how shared events work, please refer to our documentation here: Working with Shared Events
I hope this helps. If you have any further questions or need additional assistance, please don't hesitate to ask.
Regards,
Ram
Hi,
We are deliberately sharing an event across the same resource as the code shows. A reservation can have one or more tables, the question is how to show different text for each table.
Thanks,
Alex
Hi Alex,
To display different text for shared events, you can utilize the EventRendered event along with the EventTemplate.
In the EventRendered event, you can assign a specific CSS class to the shared events that are not the initial event.
Within the EventTemplate, you can render both the display text for the initial event and the shared events.
Based on the CSS class that is added in the EventRendered event, you can use CSS to set display: none to one of the content blocks in the template.
This approach allows you to customize the display of your shared events according to your requirements.
We have prepared a sample, kindly check on the attached sample for reference.
Please let me know if you need further clarification or assistance with this implementation.
Regards,
Ram
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly
Attachment: ScheduleSharedEvent_9df990c5.zip
- 3 Replies
- 2 Participants
-
AL Alex
- Jun 10, 2024 01:24 PM UTC
- Jun 20, 2024 12:54 PM UTC