or

var myDS = new kendo.data.DataSource({ transport: { read: { url: 'dataset.json' ,dataType: "jsonp" ,data: { select: "ID,NAME" } } }, schema: { data: function(response) { return response.features; }, model: { fields: { "properties.ID": { type: "number" }, "properties.NAME": { type: "string" } }, } }});$("#dropdown").kendoComboBox({ placeholder: "...", autoBind: false, suggest: true, dataTextField: "properties.NAME", dataValueField: "properties.ID", dataSource: myDS});ID | NAME-------------1 | 0,42 | 63 | 104 | 205 | 356 | 1107 | 2208 | 400var app = new kendo.mobile.Application($(document.body), { user : null, loginService: null, skin:'flat', transition: 'slide', initial : "views/account/login.html", init: function () { this.loginService = new LoginService(); if (this.loginService.loadLocalCredential()) this.initial = 'views/home/index.html'; }});LoginService = kendo.data.ObservableObject.extend({ username: "", password: "", isLoggedIn: false, login: function () { var that = this; var url = 'http://url/Account/Login?username=' + this.username + '&password=' + this.password; $.ajax({ url: url, dataType: "json", success: function (data, textStatus, jqXHR) { if (data.result == true) {
var user = new User(username,nombre,apellido,email); /* when i write new User() intellisense doesnt provide any help*/
that.set("isLoggedIn", true); app.navigate("./views/home/index.html"); } } }); }, logout: function () { this.clear(); app.navigate('./views/home/index.html'); }, clear: function () { this.set('username', ''); this.set('password', ''); this.set('isLoggedIn', false); }, loadLocalCredential: function () { this.set('username', 'geoorge'); this.set('password', '1231'); this.set('isLoggedIn', true); }});User = kendo.data.ObservableObject.extend({ username: "", nombre: "", apellido: "", email: "", isLoggedIn: false, init: function(username,nombre,apellido,email){ this.username = username; this.nombre = nombre; this.apellido = apellido; this.email = email; }});