or
<!DOCTYPE html><html> <head> <title>TestApp</title> <meta charset="utf-8"/> <link href="js/libs/kendo/styles/kendo.common.min.css" rel="stylesheet"/> <link href="css/main.css" rel="stylesheet"/> <script data-main="js/main" src="js/libs/require.js"></script> </head> <body> <noscript> <h3>Javascript muss aktiviert werden!</h3> <h3>Javascript must be active!</h3> </noscript> <h3>TestApp</h3> <div id="app"></div> </body></html>require.config({ paths: { jquery : "libs/kendo/js/jquery.min", kendo : "libs/kendo/js/kendo.all.min", text : "libs/text", indexViewModel : "models/m_index", indexViewTemplate : "views/v_index.html" }, // inform requirejs that kendo ui depends on jquery shim: { "kendo": { deps: ["jquery"] } }}); require(['jquery', 'kendo', 'myapp'], function() { var $ = require('jquery'); var kendo = require('kendo'); var myapp = require('myapp'); var App = new myapp(); App.init();});define(function(){ var myApp = function() { var constructor, app = {}, // public class object of app constructor = function() { console.info('App constructor executed'); return app; }; app.init = function() { console.info('App started'); // Here I want to enter the code which should create the view and load the template as text
// The view model should be a requureJS file and the template for the view should be loaded by
// require text plugin }; return constructor.apply(null, arguments); }; return myApp;});@(Html.Kendo().Calendar() .Name("calendar") .HtmlAttributes(new { style = "width: 143px;" }) .Footer("") ) field: 'Name', title: 'Name', filterable: { cell: { dataSource: new kendo.data.DataSource({ transport: { read: { url: ColumnFilterQueryUrl, dataType: 'json', data: { columnName: 'Name', tableName: 'Header', queryValue: $('span[data-field="Name"]').find('input')[0].value} } } }), operator: "contains"} }