How can i load or instantiate a kendo ui grid using Kendo UI grid , backbone.js , underscore.js and require.js Is it possible?
define([
'jquery',
'underscore',
'backbone',
'text!templates/cart/cartlist.html'
], function($, _, Backbone, CartListTemplate){
var mainHomeView = Backbone.View.extend({
el: $("#cartContainer"),
render: function(){
$("#grid").kendoGrid({
columns: ["ItemDescription", "Qty", "Price", { command: "destroy" }],
});
this.el.html(CartListTemplate);
}
});
return new mainHomeView;
});
And this
CartListView.render();
But it doesn't work. It doesn't show up. Any ideas?