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

Message Template

5 Answers 140 Views
Chat
This is a migrated thread and some comments may be shown as answers.
Mattia
Top achievements
Rank 1
Mattia asked on 17 Oct 2018, 06:54 AM

Hello!
I need a feature for this chat control that is present in Kendo Angular library (https://www.telerik.com/kendo-angular-ui/components/conversationalui/message-templates/)
I'm talking about message templates: the possibility to add a custom template in normal message.
I need it to implement some advance features, like messages deletion and messages modification.

This feature will be present soon in Kendo jQuery library?

Thanks,
Mattia

5 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 18 Oct 2018, 02:05 PM
Hello Mattia,

With the Kendo Chat for jQuery you have custom templates, you can read more about that feature and how to use it here: https://docs.telerik.com/kendo-ui/controls/conversational-ui/chat/chat-items#custom-templates.

Also, you can programmatically send messages by using the renderMessage method.

Regards,
Ianko
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.
0
Mattia
Top achievements
Rank 1
answered on 19 Oct 2018, 06:57 AM
Ok thanks Ianko I will try to render normal messages as a custom template, but seems like a little too laborious....
I repeat that in Kendo Angular 2 (3, 4, 5, 6, ecc..) is implemented easly.

Greetings,
Mattia
0
Accepted
Ianko
Telerik team
answered on 19 Oct 2018, 07:30 AM
Hi Mattia,

The only difference is that in Angular the definition of a message template is declarative. Whereas, in Kendo UI, programmatic. That difference, however, is expected as Angular enviroment is declarative and it is expected to be used in such a way. Whereas, JavaScript and jQuery environment is a strictly programmatic environment. 

That said, the only difference is that you need to cal a method registerTemplate instead of declaring it. Here you are a dojo example: https://dojo.telerik.com/ILorIVen

Regards,
Ianko
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.
0
Mattia
Top achievements
Rank 1
answered on 19 Oct 2018, 07:42 AM
I understood now,thanks!
0
Damian
Top achievements
Rank 1
Iron
answered on 07 Jul 2021, 09:24 AM

Hello,

I know that it's an old topic, but I don't want to create a new one.

I started work with Angular kendo chat ui and I stuck with a problem related with kendoChatMessageTemplate.

How I can create a message template without parents? because now my template is inside div with class k-bubble, which is unnecessary for me.

Ianko
Telerik team
commented on 08 Jul 2021, 05:18 AM

Hi Damian, 

Your question is related to the Kendo UI for Angular Chat component. I suggest you posting your question in the corresponding forum so that you can get an answer specific to the Angular component: https://www.telerik.com/forums/kendo-angular-ui.  

Tags
Chat
Asked by
Mattia
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Mattia
Top achievements
Rank 1
Damian
Top achievements
Rank 1
Iron
Share this question
or