javascript - kendo UI Uncaught TypeError: e.bind is not a function -


i using kendo mvvm , kendo observable extend object bind data ajax call. in object setting data property in ajax call after ajax call has succeeded. can data bind , show up. but, in console, error "uncaught typeerror: e.bind not function". have looked everywhere see if has experienced issue before or might know might triggers error, no luck...

here of javascript code:

(function (global) { kendo.data.observableobject.extend({ serviceplans : "", getserviceplans: function () {             var = this;              $.ajax({                 url: 'services-data.json',                 type: 'get',                 datatype: 'json',                 error: function(response){                     console.log('error')                 },                 success: function(response){                     that.set("serviceplans", response.splans);                 }             });         } app.servicesplansdata = {         viewmodel: new servicesplansviewmodel()     };  })(window);   $(document).ready(function(){     app.servicesplansdata.viewmodel.getserviceplans();     kendo.bind($('.page'), app.servicesplansdata.viewmodel);  }); 

and of html:

<script type="text/x-kendo-tmpl" id="serviceplans-template"> 

     <div class="drawer-tab">             <div class="plan-name">                    <input type="text" data-bind="value: planname">             </div>        </div> 


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -