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

RequireJS: kendo.view.min depends on kendo.binder.min

1 Answer 51 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Zachary
Top achievements
Rank 1
Zachary asked on 24 Apr 2013, 01:22 AM
When using RequireJS to initialize kendo.view.min, IE10 returns error "Object doesn't support property or method 'bind'". The Kendo View does not work in both IE10 and Chrome unless kendo.binder.min is also included.

Expected behavior: Kendo View should just work when kendo.view.min is included in the require line.

The attached .zip contains one index.htm file where the Kendo View does not work until kendo.binder.min is moved inside the require line.

<script>
    require(['jquery', 'kendo.view.min'], function ($) { // add 'kendo.binder.min' and the issue is fixed
            var login = new kendo.View("login-template");
            login.render("#application");
    });
</script>

<div id="application"></div>
 
<script type="text/x-kendo-template" id="login-template">
    <div>This is the login template.</div>
</script>

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 25 Apr 2013, 07:00 AM
Hello Zachary,

Thank you for notifying us. We will address this problem for our next internal build. I am updating your telerik points for this finding. 

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
MVVM
Asked by
Zachary
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or