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
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.