Completed
Last Updated: 18 Jul 2019 08:25 by ADMIN
Hetali
Created on: 11 Jul 2019 14:33
Category: Scheduler
Type: Feature Request
1
Provide a data property on Scheduler Event
Provide a data property on the Scheduler Event, so that we can store the additional data that we need. And have access to that data on a certain event.
2 comments
ADMIN
Dimiter Topalov
Posted on: 18 Jul 2019 08:25
Hi,

Closing this as the described functionality is already present. Please provide further details if the currently available approach is different from what is needed.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Shai
Posted on: 12 Jul 2019 13:46

You can already do this. all fields, including custom data you added, are available under `event.dataItem`.

Example:

<kendo-scheduler [kendoSchedulerBinding]="events" (eventClick)="onEventClick($event)">

</kendo-scheduler>

 

public onEventClick(e) {

console.log(e.event.dataItem.customField);

}