javascript - To check when knockout binding is complete -



javascript - To check when knockout binding is complete -

i using knockout bind controls on page , after binding finish utilize window.print() print page. these functions called in

$(document).ready(function (){//}

so flow this: page loads , due window.print(); goes print wizard. problem page goes print wizard , bindings incomplete although have used

ko.applybindings(object bound);

before window.print(); there method or way in knockout can check if bindings finish or not because writing in document.ready() not helping.

hmmm... applybindings should synchronous should go after it's called.

are doing ajax phone call after load data? if so, that's can add together logic maintain kind of 'ready' boolean.

you set boolean false, true after phone call applybindings, suspect there's else going on if you're print screen coming empty.

javascript knockout.js

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -