or
scheduler.resources.datasource.filter(filter);@(Html.Kendo().Menu().Name("menu").BindTo(Model, mappings => { mappings.For<IDEA20.DO.Common.MenuItem>(binding => { binding.ItemDataBound((item, category) => //define mapping between menu item properties and the model properties { item.Text = category.Text; }).Children(category => category.SubMenu); }); }) )public class MenuItem { public MenuItem() { SubMenu = new List<MenuItem>(); } public string Text { get; set; } public string Controller { get; set; } public string Action { get; set; } public bool Selected { get; set; } public List<MenuItem> SubMenu { get; private set; }}$(document).ready(function () { Sys.Application.add_load(initContactsPage); });var contactsGrid = null;function initContactsPage(){ var contactsColumns = [{ field: "CustomerName", title: "Name", template: '<a class="name" href="ContactDetails.aspx?Id=#=CustomerID#">#=CustomerName#</a>' }, { field: "strCustomerNumber", title: "Number" }, { field: "strMainPhone", title: "Phone" }, { field: "strCity", title: "City" }, { field: "strWebsite", title: "Web Site" } ]; contactsGrid = $("#gvContacts").kendoGrid({ columns: contactsColumns, dataSource: new kendo.data.DataSource({ pageSize: 10, serverPaging: true, page: 1, schema: { total: "VirtualTotal", data: "Records" }, transport: { read: { url: "/Services/APIService.asmx/ListObjectRecords", type: "POST", contentType: "application/json; charset=utf-8", dataType: "json", data: getData() } }, error: function (e) { } }), groupable: false, scrollable: false, pageable: true }).data("kendoGrid");}function searchContacts(page){ contactsGrid.dataSource.page(1);}function getData(){ var contactsParams = {}; contactsParams["objectId"] = "C9D9AEC9-F6C2-4EB3-8F00-D32A45A7C4C7"; contactsParams["textFilter"] = null; contactsParams["sortColumn"] = null; contactsParams["startIndex"] = 1; contactsParams["pageSize"] = 10; return JSON.stringify(contactsParams);}<ul data-role="listview" data-bind="source: exampleData" data-binding="onDataBinding" data-bound="onDataBound"></ul><script type="text/javascript"> function onDataBound (e) { console.log("this works"); } function onDataBinding (e) { console.log("this doesn't"); }</script>