Hi:
I am experiencing a jQuery error: Object doesn't support property or method 'apply', when I click on the button:
Phil
I am experiencing a jQuery error: Object doesn't support property or method 'apply', when I click on the button:
<script id=
'newButton-template'
type=
'text/x-kendo-template'
>
<button class=
'k-button'
data-bind=
'click: newProduct'
><span class=
'k-icon k-i-plus'
></span> New</button>
</script>
<div id=
'newProdView'
>
</div>
<script type=
"text/javascript"
>
var
newProdViewModel = kendo.observable({
newProduct:
function
(vm) {
// vm is the view model
alert(vm.target.innerText);
}
});
var
newTemplate =
new
kendo.View(
'newButton-template'
);
newTemplate.render(
"#newProdView"
, newProdViewModel);
</script>
Phil