Can the Scheduler support multiple TimelineViews?

1 Answer 70 Views
Scheduler
Micah
Top achievements
Rank 2
Iron
Iron
Iron
Micah asked on 21 Feb 2022, 05:33 PM | edited on 21 Feb 2022, 05:33 PM

In attempting to implement two TimelineViews within the Scheduler, I noticed that only the first one was accessible, and both appeared to be selected.

Is there any workaround to handle multiple TimelineViews (or rather, any views of the same type)?

Demo: https://stackblitz.com/edit/react-xd5epq?file=app%2Fmain.jsx

1 Answer, 1 is accepted

Sort by
1
Accepted
Konstantin Dikov
Telerik team
answered on 23 Feb 2022, 10:12 AM

Hello Micah,

As stated in the Views article in our documentation, the Scheduler accepts and array of Views as children, but it will render only one at a time:

Nevertheless, if you want to add multiple TimelineViews in the Views collection, you need to ensure that you are setting unique "name" properties for each one of them:

Adding unique names will allow you to switch between different TimelineViews without any issues.

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Scheduler
Asked by
Micah
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or