This is a migrated thread and some comments may be shown as answers.

kendo core and MVVM Integration

4 Answers 172 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Iron
Morten asked on 12 Sep 2017, 01:34 PM

In bootstrap a project I have used kendo.all.min.js. However, for a couple of selected pages I only need MVVM Integration so I figured I will setup the pages using kendo.all.min.js (https://github.com/telerik/kendo-ui-core).

I include: kendo/kendo.common-bootstrap.core.min.css and /kendo/kendo.core.min.js but the code below gives me the following error: Uncaught TypeError: kendo.observable is not a function

 

What am I doing wrong?

 

<div id="app">
    <div data-bind="html: test"></div>
</div>

<script type="text/javascript">
    "use strict";
    var viewModel = kendo.observable({
        test: "<span class='label label-success'>test</span>"
    });
    kendo.bind($("#app"), viewModel);

</script>

 

 

4 Answers, 1 is accepted

Sort by
0
Morten
Top achievements
Rank 2
Iron
Iron
Iron
answered on 12 Sep 2017, 01:46 PM

it seem to be a reference problem as I'm getting kendoDropDownList is not a function when trying to $("#ddl").kendoDropDownList({.

If I swap kendo.core.min.js with kendo.all.min.js both MVVM Integration and kendoDropDownList works.

How do I work with kendo.core.min.js?

0
Morten
Top achievements
Rank 2
Iron
Iron
Iron
answered on 12 Sep 2017, 06:07 PM
I found http://www.telerik.com/download/custom-download and downloaded what I needed into a custom package.
0
Morten
Top achievements
Rank 2
Iron
Iron
Iron
answered on 13 Sep 2017, 08:41 AM

I ended up adding the js files below, and it seems to work:
kendo.core.min.js
kendo.data.min.js
kendo.binder.min.js


0
Preslav
Telerik team
answered on 14 Sep 2017, 07:51 AM
Hello Morten,

I am glad to hear that the issue is now resolved. Thank you for sharing the solution with the community.

Based on the posts, I believe that you might be interested in checking the Getting Started section of our documentation:
Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Morten
Top achievements
Rank 2
Iron
Iron
Iron
Preslav
Telerik team
Share this question
or