I want to get the specific 'date' when an onEventClicked is fired as shown in the attachment(7th). But in this case I only was only able to get the start date(6th) and the end date(10th) of the event.
We are currently evaluation day-pilot as well and have a similar requirement. How can we get the selected resource ID, cell start and end dates when clicked on a specific point of an event strip?
Appreciate a suggestion on how to achieve this.
The current position in the grid (in pixels) is stored in DayPilot.Scheduler.coords object. This value is updated in real time:
var coords = dp.coords; // coords.x, coords.y
You can use DayPilot.Scheduler.getDate() method to get the date/time value.
Current mouse cursor position as date/time (DayPilot.Date object):
var date = dp.getDate(dp.coords.x, true);
Start of the current cell:
var date = dp.getDate(dp.coords.x);