So, I am upgrading to the latest kendo.all package (2014.2.716) and code that was previously working with angular-kendo.js is now failing. The setup we have is a main tab container with a set of tabs and each tab points to a templateUrl. When the templateUrl is loaded, I check the currently selected tab and get its index and pull out configuration information from the tab datasource.
The new code compiles the templateUrl prior to completing the tab.select() so if I try to pull out tab.select().index() it returns a -1. Clearly this method will not work. Is there a preferred way to get the currently selected tab configuration when that templateUrl is compiled. If I put in a timeout of 500ms, the select().index() returns as it did before, but I would prefer not to stick my page with timeout's.
Code prior was like this:
var tabStrip = $scope.$parent.vm.kendoTabStrip;
vm.tabDataSource = $scope.$parent.vm.kendoTabStrip.dataSource.at(tabStrip.select().index()); // now tabStrip.select().index() returns - 1
vm.template = vm.tabDataSource.template; // contains configuration, and no i don't want to retrieve it on this html page as it is dynamic
Let me know what my options are here, thanks.
The new code compiles the templateUrl prior to completing the tab.select() so if I try to pull out tab.select().index() it returns a -1. Clearly this method will not work. Is there a preferred way to get the currently selected tab configuration when that templateUrl is compiled. If I put in a timeout of 500ms, the select().index() returns as it did before, but I would prefer not to stick my page with timeout's.
Code prior was like this:
var tabStrip = $scope.$parent.vm.kendoTabStrip;
vm.tabDataSource = $scope.$parent.vm.kendoTabStrip.dataSource.at(tabStrip.select().index()); // now tabStrip.select().index() returns - 1
vm.template = vm.tabDataSource.template; // contains configuration, and no i don't want to retrieve it on this html page as it is dynamic
Let me know what my options are here, thanks.