Hi,
we have problem with the binding, respectively the unbinding of the following viewmodel. If we try to undind the viewmodel we get an exception (undefined is not a function) which comes from the Binder.destroy method. kendo version is: 2013.3.1324
The other problem is, that the calculated function getProperties is called 4 or 5 times within the binding process.
Thanks in advance!
Michael
we have problem with the binding, respectively the unbinding of the following viewmodel. If we try to undind the viewmodel we get an exception (undefined is not a function) which comes from the Binder.destroy method. kendo version is: 2013.3.1324
<
div
class
=
"importantData"
data-template
=
"importantDataItem-Template"
data-bind
=
"source: getProperties"
></
div
>
this
.viewModel = kendo.observable({
vm:
this
.ctx.get_viewModel(),
properties: [
"Modified"
],
getProperties:
function
() {
var
vm =
this
.get(
"vm"
);
var
array = [];
var
properties =
this
.get(
"properties"
);
var
length = properties.length;
for
(
var
i = 0; i < length; i++) {
array.push(vm.get(properties[i]));
}
return
array;
}
});
kendo.bind(
this
.container,
this
.viewModel);
The other problem is, that the calculated function getProperties is called 4 or 5 times within the binding process.
Thanks in advance!
Michael