I use a kendo list view to show my records.
According to a field value, I would like use a different edit template on a field:
- if my field value type is a image, i would like show a kendo upload
- if my field value type is a text, i would like show a kendo editor
Is it possible ? Do you have a sample ? a idea ?
Thanks for your help
As you can see in the template documentation, templates can have JavaScript code in them, including if/else blocks:
Just check your type in an if block and use whatever controls you need for that type.