Thx again. Alex. You information is very helpful.
As you can see from here http://plnkr.co/4GVh9XF7uLeNKD1uxkRx
I am using inline template now to set the background.
I still like anguarjs way, view is just response to the data from vm.
At the moment in index.html, i just hard code in css class for TD.
Later on, i will get css class load in json, then bind td with a ngClass.
I hope that is going to work. Fingers crossed!
Anyway, but in my script.js line 822 i still have to use kendo.template($("#subjectYearSemesterGridRowTemplate").html()).
Can you give me an example to get rid of $('selector') ?