or
$("#grid").kendoGrid({ dataSource: { type:"json", transport: { read: { dataType: "json", type: "POST" }, parameterMap: function (options) { return JSON.stringify({"serviceName" : "ActoresPublicoService","methodName" : "getPaises","parameters" : []}); } }, schema: { model: { fields: { title: { type: "string" } } } } }, height: 250, filterable: true, sortable: true, pageable: true, });
var selectedActivity;var activityModel = kendo.data.Model.define({ id: "_id", fields: { _id : {type:"string"}, date: {type:"string"}, activity : {type:"string"}, hours : {type:"number"} }});dataSource = new kendo.data.DataSource({ transport: { read: { url: '/activity', contentType: 'application/json; charset=utf-8', type: 'GET', dataType: 'json' }, destroy: { url: '/activity', type: 'DELETE', dataType: 'json' }, update: { url: '/activity', type: 'PUT', dataType: 'json' }, }, schema:{ model: activityModel }});$("#grid").kendoGrid({ dataSource: dataSource, sortable: true, selectable: true, rowTemplate: kendo.template($("#rowTemplate").html()), altRowTemplate: kendo.template($("#altRowTemplate").html()), columns: [ {field:"_id", title:"id"}, {field:"date", title:"date"}, {field:"activity", title:"activity"}, {field:"hours", title:"hours"} ], change: function(){ var selectedId = this.select().data("id"); selectedActivity = this.dataSource.get(selectedId); console.log("selected id:"+selectedId) console.log("selected activity is:"+JSON.stringify(selectedActivity)); }});var data = { "Title": "Title of chart", "Series": [ { "Name": "2015", "Values": [1.00, 0, 0, 2.00] }, { "Name": "2016", "Values": [1.30, 0.5, 0.6, 2.50] } ], "XAxis": { "Values": ["20 févr.", "21 févr.", "22 févr.", "23 févr."] }};
<div id="tabstrip"> <ul> <li class="k-state-active"> Movies </li> <li> Series </li> </ul> <div> <div id="gridMovies" /> <div> Second Tab Content </div></div><div id="gridMovies"></div>it works fine.



function detailInit(e) { $("<div/>").kendoGrid({ dataSource: { transport: { read: { url: "../OrderDetailJson/", dataType: "json" }, }, filter: { field: "orderid", operator: "eq", value: e.data.Id } }, ....}public JsonResult OrderDetailJson(int orderid){...}filter: { field: "orderid", operator: "eq", value: e.data.Id } doesn't work??? I thought it will work like jquery .post/json call but it doesn't.