I have created a table structure like this:
<table><tr data-bind="css: {success: status}">
<td>
<input type="checkbox" onclick="this.disabled = 'disabled';" data-bind="checked: status, disable: status, click: $root.UpdateStatus" />
</td>
<td>
<span style="width: 80%" data-bind="text: goals" />
</td>
<td>
<input type="text" style="width: 80%" data-bind="value: notes , event: { blur: $root.UpdateNote}" />
</td>
</tr></table>
In this table, one checkbox is there in every row. My problem is i want to change the row color when checkbox is checked. I have done css binding in tr, but its working if i reload the page again.
This is jsfiddle link, but its not working.
I cleaned up your fiddle and made it work:
http://jsfiddle.net/vyshniakov/gkyGN/3/
EDIT
For mapping data from server use
arrayMapfunction fromko.utils: