Multi Day Appointment Spans
When a schedule grid has ShowMultiDayAppointmentsAsSpans = true the resulting multi day appointments appear to be rendered as a different control than the primary grid. The grid mouse events fire when interacting with a single day event, but they do not fire with a multi day event. I want to implement a custom tooltip that renders correctly for both single day appointments and multi-day appointments. How can I reference mouse events for these multi-day appointments?
Hi Steve Stich,
Based on your requirement, to check the reported issue, can you please provide the below-mentioned details:
How did you implement the code for MultidayAppointments and event triggering for the Schedule control?
Can you please provide the code snippets used in your sample?
If possible, can you please provide a sample in which the issue replicates?
Providing these details will help us better understand the issue and work
towards finding a solution promptly.
Regards,
DhivyaBharathi Dakshinamurthy
Below are code snippets for the schedule control and handling of mouse events on the schedule. All these mouse events fire as the mouse moves around the schedule EXCEPT when the mouse is over the multi-day appointments.
'Initialize the schedule
Me.ScheduleControl1.ScheduleType = ScheduleViewType.Month
Me.ScheduleControl1.Appearance.AllowProportionalColumnSizing = True
'Me.ScheduleControl1.Appearance.VisualStyle = Syncfusion.Windows.Forms.GridVisualStyles.Metro
Me.ScheduleControl1.ShowMultiDayAppointmentsAsSpans = True
Me.ScheduleControl1.Appearance.EnableAdvancedToolTip = False
AddHandler Me.ScheduleControl1.GetScheduleHost().DrawCell, AddressOf MainForm_DrawCell
AddHandler Me.ScheduleControl1.GetScheduleHost().DrawCellBackground, AddressOf MainForm_DrawCellBackground
AddHandler Me.ScheduleControl1.GetScheduleHost().MouseDown, AddressOf MainForm_ScheduleControl1_MouseDown
AddHandler Me.ScheduleControl1.GetScheduleHost().MouseUp, AddressOf MainForm_ScheduleControl1_MouseUp
'AddHandler Me.ScheduleControl1.GetScheduleHost().ShowingAdvancedToolTip, AddressOf MainForm_ScheduleControl1_ShowingAdvancedToolTip
AddHandler Me.ScheduleControl1.GetScheduleHost().MouseMove, AddressOf MainForm_ScheduleControl1_GetScheduleHostMouseMove
AddHandler Me.ScheduleControl1.GetScheduleHost().GridControlMouseMove, AddressOf MainForm_ScheduleControl1_GetScheduleHostGridControlMouseMove
AddHandler Me.ScheduleControl1.GetScheduleHost().MouseDoubleClick, AddressOf MainForm_ScheduleControl1_GetScheduleHostMouseDoubleClick
AddHandler Me.ScheduleControl1.GetScheduleHost().CellMouseHover, AddressOf MainForm_ScheduleControl1_GetScheduleHostCellMouseHover
AddHandler Me.ScheduleControl1.MouseHover, AddressOf MainForm_ScheduleControl1_MouseHover
AddHandler Me.ScheduleControl1.ShowingAppointmentForm, AddressOf ScheduleControl1_ShowingAppointmentForm
AddHandler Me.ScheduleControl1.ItemChanging, AddressOf MainForm_ScheduleControl1_ItemChanging
AddHandler Me.ScheduleControl1.AdjustingAppointmentWithMouse, AddressOf MainForm_ScheduleControl1_AdjustingAppointmentWithMouse
Me.ScheduleControl1.DataSource = ScheduleDP
My schedule dataprovider class inherits arraylistdataprovider to get appointment data from SQL tables and otherwise works as I would expect. Copy of that class is attached in a zip file.
Attachment: SQLScheduleDataProvider_b3180a2a.zip
Hi Steve Stich,
Based on the provided information, we are able to replicate the reported scenario. The mouse events are not triggered in the multiday span appointment. We are currently analyzing the cause for the reported scenario. We need time to validate, and we will provide an update on or before February 19, 2024.
Regards,
DhivyaBharathi Dakshinamurthy
Hi Steve Stich,
We are currently analyzing the cause of the reported scenario. We need more time to analyze in the source level, and we will provide an update on or before February 21, 2024.
Regards,
DhivyaBharathi Dakshinamurthy
Hi Steve Stich,
We have checked the reported issue “ Mouse events not triggering for spanned appointments when ShowMultiDayAppointmentsAsSpans is set to True ”on our end and it is confirmed as a defect. And We have logged a bug. We will fix this issue and include it in our NuGet release Which is scheduled on March 12, 2024.
You can track the status of this report through the following feedback link,
Feedback Link: https://www.syncfusion.com/feedback/51139/mouse-events-not-triggering-for-spanned-appointments-when
Note: The provided feedback link is private, and you need to log in to view this feedback.
We will let you know once it is released. We appreciate your patience until then.
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.
Hi Steve Stich,
We regret for inconvenience.
Due to the 2024 volume 1 Main Release, there won't be a NuGet release today. We plan to address this issue and include the fix in our first NuGet release following the Volume 1 Main Release.
We will let you know once it is released. We appreciate your patience until then.
Steve Stich,
We would like to let you know that Essential Studio Weekly NuGet packages (v25.1.38) has
been published in nuget.org with the fix for the issue “Mouse
events not triggering for spanned appointments when
ShowMultiDayAppointmentsAsSpans is set to True”. Please let us know if you have
any concerns in this.
Root Cause Details:
We have created the appointment using a Transparent label, it overlaps to
schedule grid. So, when we try to use mouse events in the multiday appointment,
the mouse events are not triggered. Now, we have called the grid events from
this label events.
I'm picking this project up and working on getting a custom tooltip control to show/hide for appointment items in the grid. I'm successfully using ScheduleControl.GetItemAtPoint to retrieve the item ID on a mousehover for all single day appointments, but multiday spans do not return an item when using GetItemAtPoint.
Is there a way to retrieve the IScheduleAppointment of a multiday span with a mouse position?
Hi Steve Stich,
We have created a new forum for your latest
update, as this is a new query. We kindly request that you follow up on the new
forum. We will now close this forum. If you have any other concerns, please
open a new support forum. As always, we are happy to assist you.
Forum Link-> How
to obtain the details of a multi-day spanned appointment based on the position
of the mouse hover? ~ Split from F186694 | WinForms Forums | Syncfusion®
Regards,
Santhosh.G
- 9 Replies
- 5 Participants
-
SS Steve Stich
- Feb 13, 2024 12:29 AM UTC
- Dec 30, 2024 05:17 PM UTC