HTML and JS snippets:
http://jsfiddle.net/Udt63/1/
My problem is the value I am assigning with a checked binding is not
resulting in a checked radio button on the initial render.
The binding is otherwise successful: if I change the data model after
they are rendered the corresponding radio button becomes checked.
Additionally other elements on the page which are bound to the same
value are correctly rendered. Clicking the radio buttons also results
in changes to the data model as expected.
Is it necessary for me to set an explicit checked="" attribute in the
rendered HTML? Or is there something I need do to differently to
ensure the radio button corresponding with my bound value is checked?
Cheers
Ollie
--
@ollicle
Ultimately my solution to this was to template and render the HTML
(using mote.js) *before* applying the knockout binding. Using the same
data for the template as is used as a basis for the knockout ViewModel
means there was little redundancy.
Ollie
--
@ollicle