Skip to content

Kendo Scheduler component, kendoSchedulerEventTemplate, event variable has nested dataItem.dataItem #4605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
theredpea opened this issue Apr 20, 2025 · 0 comments

Comments

@theredpea
Copy link

Description

dataItem is nested twice on the event object available in the kendoSchedulerEventTemplate, like event.dataItem.dataItem.whatever

Steps To Reproduce

dataItem is nested twice on the event object available in the kendoSchedulerEventTemplate
I would expect dataItem is only once
See example here:
https://codesandbox.io/p/devbox/twilight-hooks-rs2zdh?workspaceId=ws_R2AbLytqUZFTBBkgUyBknU

Notice inside the kendoSchedulerEventTemplate, I have two attempts to read the dataItem
Only the second one works, I expect the first one would work.

dataItem: {{ event.dataItem.prop }}
| dataItem.dataItem.prop: {{ event.dataItem.dataItem.prop }}

Screenshots or video

No response

Actual Behavior

Only the second one actually works, I expect the first one would work.

dataItem: {{ event.dataItem.prop }}
| dataItem.dataItem.prop: {{ event.dataItem.dataItem.prop }}

Expected Behavior

I expect the first one would work.

dataItem: {{ event.dataItem.prop }}
| dataItem.dataItem.prop: {{ event.dataItem.dataItem.prop }}

Browser

Chrome

Browser version

latest

OS type

MacOS

OS version

No response

Last working version of the Kendo UI for Angular package (if regression).

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant