Uncaught TypeError: Object has no method 'observable' (or 'bind')

5 posts, 1 answers
  1. Luke
    Luke avatar
    2 posts
    Member since:
    Mar 2012

    Posted 16 Mar 2012 Link to this post

    Sorry if this is a really dumb question - I'm sure it will be something obvious - but why do I get an Uncaught TypeError when I do kendo.observable (and kendo.bind) in the code below?

    Trying to follow the examples but falling at the first hurdle!

    Many thanks!

    <!DOCTYPE html>
    <html>
    <head>
        <title>Test page</title>
        <script src="js/kendoui/jquery-1.7.1.js"></script>
        <script src="js/kendoui/kendo.all.js"></script></head>
    <body>
        <span data-bind="text: name"></span>
         <script>
            var viewModel = kendo.observable({
                name: "John Doe"
            });
            kendo.bind($("span"), viewModel);
        </script>   
    </body>
    </html>


  2. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 16 Mar 2012 Link to this post

    Hello Luke,

    Your code snippet looks ok, I tried it in this jsFiddle and it works as expected.
    Could you please verify what version of KendoUI you are using? MVVM is part of the latest beta release and is not supported in previous versions of the framework.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Luke
    Luke avatar
    2 posts
    Member since:
    Mar 2012

    Posted 18 Mar 2012 Link to this post

    Thank you Alexander. That nails it! I downloaded the GPL version 2011.3 1123 (Nov 29, 2011) of Kendo UI Web, so that is my problem! It's just a bit confusing that the MVVM examples are included in the zip you get with that version...

    No worries though. I will try out the Q1'12 Beta...

    Thanks again,
    Luke.
  5. Markus
    Markus avatar
    10 posts
    Member since:
    May 2012

    Posted 10 Dec 2013 Link to this post

    Hi all,
    I have kendoui.web.2013.3.111 and have the same issue... Is MVVM still in beta?


    Regards!
  6. Markus
    Markus avatar
    10 posts
    Member since:
    May 2012

    Posted 10 Dec 2013 Link to this post

    Hi all!
    Nevermind! Was referencing wrong javascript file.


    Regards,
    Valanto
Back to Top
Kendo UI is VS 2017 Ready