or
@(Html.Kendo().TreeView() .Name("DataSetTree") .TemplateId("ClassifierTreeTemplate") .DataSource(dataSource => dataSource .Read(read => read .Action("Index", "DataSet").Type(HttpVerbs.Post) ) ) .Events(e => { e.Change("OnTreeChange"); e.DataBound("OnDataBound") }))var mapData = $('#map').data('kendoMap'); mapData.layers[1].dataSource = new kendo.data.DataSource({ transport: { read: { url: ('@Url.Action("getMapData")'), dataType: "json", data: { customerId: customer.Id } } } }); mapData.layers[1].dataSource.read();$("#map").kendoMap({ center: [30.268107, -97.744821], zoom: 15, layers: [{ type: "tile", urlTemplate: "http://#= subdomain #.tile2.opencyclemap.org/transport/#= zoom #/#= x #/#= y #.png", subdomains: ["a", "b", "c"], attribution: "© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>." + "Tiles courtesy of <a href='http://www.opencyclemap.org/'>Andy Allan</a>" }, { type: "marker", locationField: "latlng", titleField: "name", }] });