Customize timestamp in Conversational UI

2 Answers 84 Views
Chat
jsi
Top achievements
Rank 1
jsi asked on 16 Dec 2022, 04:55 PM

What is the best way to customize the timestamp location and format?

We've tried using templates but can only control those rendered from chat.renderMessage, it's not clear how to use a different template from the user's posted message (ie we only know how to control the left-side not the right-side message bubbles)

The documentation has no information on this and were only able to piece together from other forum posts

2 Answers, 1 is accepted

Sort by
1
Accepted
Peter Milchev
Telerik team
answered on 27 Dec 2022, 11:13 AM

Hello, you can try overriding the default "text" and "message templates" similar to the demonstration in the following dojo:

jsi
Top achievements
Rank 1
commented on 27 Dec 2022, 03:31 PM

Peter's sample is what we were looking for thanks

0
Martin
Telerik team
answered on 21 Dec 2022, 09:32 AM

Hello, Gary,

You can register a custom template to format the user message. You can find further information on this link from our documentation.

Let me know if you have any further questions.

Regards,
Martin
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.

jsi
Top achievements
Rank 1
commented on 22 Dec 2022, 04:01 PM

We understand using a template with renderAttachment but that doesn't allow us to change how the user's own post appears in the chat, their right-hand side of the chat can't be overwritten doing this or if it can the documentation is unclear

ie, when the user enters a message and presses enter, their message bubble goes into the chat in their display that's what we want to control, that's obfuscated by the chat control

Overriding the post event on the kendoChat doesn't seem to allow us to influence that

Tags
Chat
Asked by
jsi
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Martin
Telerik team
Share this question
or