I would like to run code in the viewModel after the page has loaded/rendered.
e.g. <div id="terminalForm" data-bind="events: {onload: addValidator}" >
My problem I'm trying to solve is attaching a validator , which can only be done after the template has been rendered.
$("#terminalForm").kendoValidator().data("kendoValidator");
I'm building a spa app, and not sure it it's preventing the onload event firing or if the kendo bind doesn't support it.
any help appreciated.
cheers,