Hi , Creating Bot like application using kendo list view.
If the Current logged in user Name is matched with exiting comment , then create div and align left else align div right. Not able to do in a template.
One way in which you can set the Kendo UI template to be conditional based on the ViewBag value is to set the if/then statement in a similar way like this template:
Please take a look at the attached sample which utilizes the approach above. Please feel free to modify the styling based on your preferences, and let me know if you have any questions.