Hi guys.
Kendo UI for ASP.NET MVC 2014.2.903 has broken my application down. You seem to miss
"result = $(element).data("kendo" + widget.fn.options.prefix + widget.fn.options.name);" in new version.
So, in the bottom of kendo.init you do not initialize anything.
Kendo UI for ASP.NET MVC 2014.2.903 has broken my application down. You seem to miss
"result = $(element).data("kendo" + widget.fn.options.prefix + widget.fn.options.name);" in new version.
So, in the bottom of kendo.init you do not initialize anything.
4 Answers, 1 is accepted
0
Graham
Top achievements
Rank 1
answered on 04 Sep 2014, 10:34 AM
Sorry. I mean kendo.initWidget. And I found the place where you are initializing the widget.
0
Hi Graham,
I am not sure that I understand your case, as kendo.init works fine in our test cases. Can you please provide a test case of the regression? We will examine it and address it as soon as possible.
Regards,
Petyo
Telerik
I am not sure that I understand your case, as kendo.init works fine in our test cases. Can you please provide a test case of the regression? We will examine it and address it as soon as possible.
Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Graham
Top achievements
Rank 1
answered on 04 Sep 2014, 10:57 AM
My view looks like
<div data-role="tabstrip" data-animation="false" data-bind="kendoTabStrip: {activate: bookingWindow.onTabActivated, selected:0}">
</div>
Ko binding:
ko.bindingHandlers.kendoTabStrip = {
init: function (element, valueAccessor) {
var options = ko.utils.unwrapObservable(valueAccessor());
var tabStrip = $(element)
.data("kendoTabStrip");
if (tabStrip == undefined) {
kendo.init($(element));
tabStrip = $(element).data("kendoTabStrip");
}
if (options.selected != undefined)
tabStrip.select(options.selected);
if (options.activate) {
tabStrip.bind("activate", options.activate);
}
}
};
and the string in bold does not work after updating. Not sure if it is sufficient. I am trying to figure out what is wrong.
<div data-role="tabstrip" data-animation="false" data-bind="kendoTabStrip: {activate: bookingWindow.onTabActivated, selected:0}">
</div>
Ko binding:
ko.bindingHandlers.kendoTabStrip = {
init: function (element, valueAccessor) {
var options = ko.utils.unwrapObservable(valueAccessor());
var tabStrip = $(element)
.data("kendoTabStrip");
if (tabStrip == undefined) {
kendo.init($(element));
tabStrip = $(element).data("kendoTabStrip");
}
if (options.selected != undefined)
tabStrip.select(options.selected);
if (options.activate) {
tabStrip.bind("activate", options.activate);
}
}
};
and the string in bold does not work after updating. Not sure if it is sufficient. I am trying to figure out what is wrong.
0
Hello Graham,
I can't really determine what goes wrong in this case. As a general advice, you may try simplifying the case further, like testing it in outside of the KO context. It seems to be something very peculiar, because if kendo.init does not work most (if not all) of our demos would not work too.
Regards,
Petyo
Telerik
I can't really determine what goes wrong in this case. As a general advice, you may try simplifying the case further, like testing it in outside of the KO context. It seems to be something very peculiar, because if kendo.init does not work most (if not all) of our demos would not work too.
Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!