How do you set the data function for a Kendo DataSource using the Razor HTML Helpers?
问题 I'm trying to get the Kendo UI for ASP.NET MVC grid control working with a WebApi controller using OData queries. I would prefer to emit the relevant javascript using the Html helpers but I'm struggling to emit the equivalent of this: schema: { data: function (data) { return data; } } I've tried this: .Schema(schema => schema.Data((object data) => { return data; })) But I'm getting Error: 'Kendo' is undefined in IE and the actual JS emitted is: "schema":{"data":Kendo.Mvc