ContextMenu for blocked time ranges

Hello,

I want to use the blocking feature of the scheduler (https://blazor.syncfusion.com/documentation/scheduler/appointments#block-date-and-time) to show when someone is on vacation and therefore not available.

Then I want the user to be able to delete this vacation with a context menu entry, but I can't figure out how to show the menu item only if the user has right-clicked on such a blocked item.

ScheduleRef.GetTargetCellAsync returns null, ScheduleRef.GetTargetEventAsync returns an empty item,  ScheduleRef.GetElementInfoAsync also returns null.


Attachment: SyncfusionSchedulerHoliday_bcfaca1d.zip

2 Replies

VR Vijay Ravi Syncfusion Team September 18, 2024 10:48 AM UTC

Hi Max Lock, 
 

We consider your reported query with "EventData details for blocked data returns as null when using context menu" as a bug and logged the defect report. The fix for this defect will be included in our upcoming weekly patch release, which is expected to be rolled out by the September 30th, 2024. You can track the status of the fix at the following link:


Feedback link: https://www.syncfusion.com/feedback/61392/eventdata-details-for-blocked-data-returns-as-null-when-using-context-menu

Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.

Don't hesitate to get in touch if you require further help or more information.

Regards,

Vijay



RR Ram Raju Elaiyaperumal Syncfusion Team October 3, 2024 03:12 PM UTC

Hi Max Lock, 
 

Thanks for your patience.

 

We are glad to announce that our patch release (V27.1.50) has been rolled out successfully. The issues with the Event Data details for blocked data returns as null when using context menu” have been resolved in this release.

 

To access this fix, we suggest you update the package to 27.1.50 and we include the sample in the latest version for your reference.
 

Feedbackhttps://www.syncfusion.com/feedback/61392/eventdata-details-for-blocked-data-returns-as-null-when-using-context-menu

Release Notes: https://blazor.syncfusion.com/documentation/release-notes/27.1.50?type=all#schedule

Root Cause:


The root cause for returning null, in server side in GetTargetEventAsync method not handled for blocked data to get eventdetails from script side. And in script side in GetTargetDetails, to get the target element handled only for appointment data, not for blocked data. So, it returns null.
  

Regards,

Ram.


Loader.
Up arrow icon