Hi,
I'm trying to do something similar as in the fiddle: http://jsfiddle.net/fPNUN/1/
Except for the data being defined hard coded I am loading a data object via a RESTful webservice call and I am doing all this in an angular directive.
I then try to do something like this:
var promise = helper.fetchData();
promise.then(
function (result) {
var data = result.data;
var tabstrip = element.find(".kendo-tab-strip");
tabstrip.kendoTabStrip({
dataSource: data,
dataTextField: "label",
dataContentUrlField: "partial",
});
}
);
Here is what happens when the page is loaded:
* The tabs are listed with their labels (obviously the json object has been returned)
* No content is displayed (even though I programmatically select the first tab)
* When I click on one of the tabs for the first time (!!!) the following error is logged in the javascript console:
Uncaught TypeError: Cannot call method 'abort' of undefined Array[2] angular.js:6173
Uncaught TypeError: Cannot call method 'abort' of undefined kendo.all.js:26958
What is really weird is that the content is then displayed correctly and when I click on the other tabs subsequently everything works and the error is no longer thrown.
I'm trying to do something similar as in the fiddle: http://jsfiddle.net/fPNUN/1/
Except for the data being defined hard coded I am loading a data object via a RESTful webservice call and I am doing all this in an angular directive.
I then try to do something like this:
var promise = helper.fetchData();
promise.then(
function (result) {
var data = result.data;
var tabstrip = element.find(".kendo-tab-strip");
tabstrip.kendoTabStrip({
dataSource: data,
dataTextField: "label",
dataContentUrlField: "partial",
});
}
);
Here is what happens when the page is loaded:
* The tabs are listed with their labels (obviously the json object has been returned)
* No content is displayed (even though I programmatically select the first tab)
* When I click on one of the tabs for the first time (!!!) the following error is logged in the javascript console:
Uncaught TypeError: Cannot call method 'abort' of undefined Array[2] angular.js:6173
Uncaught TypeError: Cannot call method 'abort' of undefined kendo.all.js:26958
What is really weird is that the content is then displayed correctly and when I click on the other tabs subsequently everything works and the error is no longer thrown.