Timeline control - display custom text instead of date

0 Answers 33 Views
Timeline
Ines
Top achievements
Rank 1
Ines asked on 30 Aug 2023, 12:29 PM

Is it possible to display a custom text instead of date as in the picture attached? I would like to have a custom text there and date and time in the tooltip when user hovers over this text / point in the timeline.

Rumen
Telerik team
commented on 04 Sep 2023, 09:53 AM

Hi Ines,

While the timeline does not offer a content template for its flag elements, you can use the DOM to update the flag value with custom text. Here is an example of how to get a reference to the first flag element

$telerik.$(".k-timeline-flag").get(0).innerText = "custom text";

You can use the client-side OnDataBound event to update the flag text. This event is fired when the widget is bound to data from its data source.

No answers yet. Maybe you can help?

Tags
Timeline
Asked by
Ines
Top achievements
Rank 1
Share this question
or