Hello,
You can change the row colors without the templates by modifying the DOM elements. But you will have to do it after almost every action. That will affect the performance and won’t always work correctly.
Check how it works in the following snippet: http://snippet.dhtmlx.com/55a95275d
It would be better if you generate styles from task properties and return the style name in the template.
Here is an example of how it might be implemented: https://snippet.dhtmlx.com/e62f44c8c