ScheduleGrid GetScheduleHost() Events Not Firing
VB.net, Syncfusion version 28.1462. I'm trying to hook into the ShowingAdvancedToolTip event and it does not appear to be firing. To troubleshoot the issue I've tried adding handlers for a bunch of the other mouse events for the ScheduleGrid and none appear to be firing, so I think I'm referring to the control incorrectly. Can you point me in the right direction? I'm trying to customize the tooltip.
I have one schedule control, and I'm initializing the schedule control like this:
'Initialize the schedule
MainScheduleControl = Me.ScheduleControl1
MainScheduleControl.ScheduleType = ScheduleViewType.Month
MainScheduleControl.Appearance.AllowProportionalColumnSizing = True
MainScheduleControl.Appearance.VisualStyle = Syncfusion.Windows.Forms.GridVisualStyles.Metro
MainScheduleControl.ShowMultiDayAppointmentsAsSpans = True
MainScheduleControl.Appearance.EnableAdvancedToolTip = True
MainScheduleControl.DataSource = ScheduleDP
MainScheduleGrid = Me.ScheduleControl1.GetScheduleHost()
Debug.WriteLine("Adding Event Handlers")
AddHandler MainScheduleGrid.DrawCell, AddressOf MainForm_DrawCell
AddHandler MainScheduleGrid.DrawCellBackground, AddressOf MainForm_DrawCellBackground
AddHandler MainScheduleGrid.MouseDown, AddressOf MainForm_ScheduleControl1_MouseDown
AddHandler MainScheduleGrid.MouseUp, AddressOf MainForm_ScheduleControl1_MouseUp
AddHandler MainScheduleGrid.MouseMove, AddressOf MainForm_ScheduleControl1_GetScheduleHostMouseMove
AddHandler MainScheduleGrid.GridControlMouseMove, AddressOf MainForm_ScheduleControl1_GetScheduleHostGridControlMouseMove
AddHandler MainScheduleGrid.MouseDoubleClick, AddressOf MainForm_ScheduleControl1_GetScheduleHostMouseDoubleClick
AddHandler MainScheduleGrid.CellMouseHover, AddressOf MainForm_ScheduleControl1_GetScheduleHostCellMouseHover
AddHandler MainScheduleGrid.MouseHover, AddressOf MainScheduleGrid_MouseHover
AddHandler Me.ScheduleControl1.GetScheduleHost().ShowingAdvancedToolTip, AddressOf MainScheduleGrid_ShowingAdvancedToolTip
These handlers for the schedulecontrol events do fire:
AddHandler MainScheduleControl.ShowingAppointmentForm, AddressOf ScheduleControl1_ShowingAppointmentForm
AddHandler MainScheduleControl.ItemChanged, AddressOf MainForm_ScheduleControl1_ItemChanged
AddHandler MainScheduleControl.ItemChanging, AddressOf MainForm_ScheduleControl1_ItemChanging
Hi Steve Stich,
Thank you for reaching out.
Based on the information and code snippet you provided, you mentioned that the ShowingAdvancedToolTip event does not fire properly. We attempted to replicate the reported scenario on our end, but we were unable to reproduce the issue; the event was triggered as expected. For your reference, we have attached a sample and a video.
Code Snippet:
|
Dim scheduleGrid As ScheduleGrid = scheduleControl1.GetScheduleHost()
AddHandler scheduleGrid.ShowingAdvancedToolTip, AddressOf ScheduleGrid_ShowingAdvancedToolTip
e.BorderColor = Color.Red
e.CategoryBackColor = Color.Violet End Sub
|
Please note that we also verified the other mentioned
events, and they were triggered correctly as well.
Regards,
Santhosh.G
Attachment: App_3c4b4e93.zip
- 1 Reply
- 2 Participants
-
SS Steve Stich
- Dec 16, 2024 02:01 AM UTC
- Dec 16, 2024 01:04 PM UTC