I have two KendoDatePicker's in an AngularJS directive (this is the example). The handler of the first one is called "picker" and the second one "picker2". If I click on the "Open" button, I can open the calendar of "picker" with scope.picker.open(). However, if I run scope.picker2.open() when the directive is initialized (in the link function) I get the error "TypeError: Cannot read property 'open' of undefined" it seems that "picker2" is not available. Any idea why?
Thanks
Pablo
Thanks
Pablo