Scheduler multiline timeline item

3 Answers 48 Views
Scheduler
Matúš
Top achievements
Rank 1
Iron
Matúš asked on 10 Mar 2023, 02:31 PM

Hello,

I would like to ask if it is possible to show multiline items in timeline view in scheduler. It seems that the height of item is 25px by default. I would like to make it larger as you can see on the attached image.

Thanks

Matus

3 Answers, 1 is accepted

Sort by
0
Wissam
Telerik team
answered on 14 Mar 2023, 10:14 AM

Hello, Matúš,

Thank you for the provided screenshot.

You can change the item height by rendering a custom view item using the viewItem prop and setting the height style.

In the below example, I am using the item prop to render a custom item to display multiline text. Moreover, in `custom-view-item.tsx`, I am setting the height to 75px. You can set it to auto to make the height fit the content:

For more information about customizing the Item height, 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

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Matúš
Top achievements
Rank 1
Iron
answered on 16 Mar 2023, 12:40 PM

Hello Wissam,
thanks for answer, I've tried your solution and it seems to work at first sight, but I found a rendering issue.

I modified your examle:
https://stackblitz.com/edit/react-h2kfzd-sshzhe

When you open it, everything is ok, click on next button and then on previous, you can see that appointments for user 1 and user 2 are overlaping (see screenshot)

Regards,
Matus

 

0
Wissam
Telerik team
answered on 20 Mar 2023, 12:05 PM

Hello, Matúš,

I tested the provided modified example and I saw that this bug appears when applying grouping, setting the orientation to vertical, and rendering a custom view item.

Therefore, I opened a GitHub item for this unwanted behavior, you can track it for any updates using the following link:

As a current workaround, you can set the group orientation to horizontal.

In addition, I updated your Telerik Points as a small token of gratitude for your report. Apologies for the inconvenience this bug may have caused you.

Regards,
Wissam
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
Matúš
Top achievements
Rank 1
Iron
Answers by
Wissam
Telerik team
Matúš
Top achievements
Rank 1
Iron
Share this question
or