Message Template

5 posts, 1 answers
  1. Mattia
    Mattia avatar
    33 posts
    Member since:
    Mar 2015

    Posted 17 Oct Link to this post

    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

  2. Ianko
    Admin
    Ianko avatar
    1822 posts

    Posted 18 Oct Link to this post

    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.
  3. Mattia
    Mattia avatar
    33 posts
    Member since:
    Mar 2015

    Posted 19 Oct Link to this post

    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
  4. Answer
    Ianko
    Admin
    Ianko avatar
    1822 posts

    Posted 19 Oct Link to this post

    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.
  5. Mattia
    Mattia avatar
    33 posts
    Member since:
    Mar 2015

    Posted 19 Oct Link to this post

    I understood now,thanks!
Back to Top