BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hello,
In my code I have an scheduler and using an custom EditorTemplate for the editor.
I am handling the PopupCloseEvent and check the current action of the PopupCloseEventArgs to decide the next statement. Unfortunately, when editing or deleting an event the CurrentAction-Property of the event args is wrong! It always contains "Add", even when I'm editing or deleting an event.
Thats a huge problem, because I cannot know if the user wants to delete/add/edit an event.
Regards
Hi Yannici,
We confirmed your reported problem with "CurrentAction of PopupCloseEventArgs value is wrong" 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 mid of March 2023. You can track the status of the fix at the following link:
Feedback: https://www.syncfusion.com/feedback/41648/currentaction-of-popupcloseeventargs-value-is-wrong
Disclaimer: The inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Until then we suggest you to use the GetCurrentAction public method as workaround.
Index.razor:
public void OnPopupClose(PopupCloseEventArgs<AppointmentData> args) { var currentAction = ScheduleRef.GetCurrentAction(); if (args.Type == PopupType.Editor || args.Type == PopupType.QuickInfo) { args.Data.Subject = (args.Data.Subject == "Add title") ? "New event" : args.Data.Subject; //The default subject is changed from Add Title to New event } } |
Regards,
Satheesh Kumar B
Yannici, The fix for the issue “CurrentAction of PopupCloseEventArgs value is wrong” has been included in our weekly release 20.4.53. Upgrade to the latest version to resolve the issue.
Release notes: https://blazor.syncfusion.com/documentation/release-notes/20.4.53?type=all#scheduler