This is a migrated thread and some comments may be shown as answers.

Timebar interval label cut off

1 Answer 5 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Gitle
Top achievements
Rank 1
Gitle asked on 23 Oct 2018, 08:24 AM

I have a timebar used to selecting time range. However sometimes when the interval is short and located far to the right, the text showing the selected time is cut off, like this: https://i.gyazo.com/179cc9d932da3bcfa08fe38558cbb0ca.png

How can I prevent this? For example make the label right aligned instead of left aligned if it's too far to the right.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 26 Oct 2018, 07:07 AM
Hello Gitle,

The control doesn't support the result you are looking for. However, you can achieve this using some custom code. For example, you can display a custom element on the screen and show the selection title there, instead of using the built-in title. Or alternatively, you can find the element that shows the title and position it manually when you scroll or select an area. You can see such approach shown in the attached project. I hope it helps.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TimeBar
Asked by
Gitle
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or