So I'm working on binding data with elements by knockout. Then a have a partial view that renders when I click a button. Everything is working just fine so far, I get the right data I need to the partial.
The problem is that i have an input that I want to act like a kendoDatePicker but it wont. I've notice that when I click the button to render the Partial view, it execute the right method and gets the right data but in the same method it does
$("#id").kendoDatePicker();
But the DOM element is not yet rendered and I guess that is the problem. I've tried to knockout-bind the element like: <input data-bind="kendoDatePicker: {value: startDate}"/>
but then not even the date is there.
Notice the the main div in the partial view is binded like this <div data-bind="with: $root.shift"> <input id="randomId" data-bind: Start"/> //thats not showing in the main DOM until I the partial is loaded</div>
when i remove the "with" binder the i see all the element inside this parital but I lose the functionality of the button.
Anyone got the same problem? Is there anything I do/change to make it work?