In Kendo React Scheduler, get event id when event is clicked

1 Answer 152 Views
Scheduler
dip
Top achievements
Rank 1
dip asked on 24 May 2023, 12:41 PM

I am using kendo react scheduler with many events. Now, when any event is clicked, i need to get the event id of that event through a callback.

But i can't get how to get that. Any help will be appriciable.

1 Answer, 1 is accepted

Sort by
0
Wissam
Telerik team
answered on 26 May 2023, 09:47 AM

Hi, Dip,

You can achieve this by rendering a custom `SchedulerItem` using the item prop and handling its onClick event which contains information about the clicked item.

For example, to get the event id, you can use `e.target.props.dataItem.id`:

For more information about customizing the Scheduler items, you can check the following article:

I hope this helps, but please let me know if you have any further questions.

Regards,
Wissam
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Scheduler
Asked by
dip
Top achievements
Rank 1
Answers by
Wissam
Telerik team
Share this question
or