kendoChat(); How to wire default post method to use template.

1 Answer 33 Views
Chat Templates
Jeff
Top achievements
Rank 1
Iron
Jeff asked on 10 Jan 2024, 10:14 PM | edited on 11 Jan 2024, 02:13 PM

Hey everybody! 

There must be something simple that I am missing.

I currently have a template set up to render through renderMessage() which runs for every message on initialization. 
Loosely based on this. Thank you Martin for this one.
https://www.telerik.com/forums/set-date-on-rendermessage-in-kendochat

The issue is that when I hit the send button and it goes into the post() method, this template no longer applies and it seems to reverts back to default.

How do I wire up my template to be used by default on send button click? 

Best, 
Jeff 

1 Answer, 1 is accepted

Sort by
0
Accepted
Jeff
Top achievements
Rank 1
Iron
answered on 11 Jan 2024, 03:10 PM
Registering the template as "message" seemed to do the trick 🧙‍♂️
Tags
Chat Templates
Asked by
Jeff
Top achievements
Rank 1
Iron
Answers by
Jeff
Top achievements
Rank 1
Iron
Share this question
or