or
change: function (e) { this.closeCell();},Hi,
The documentation states the following about the change event: Fired when the user selects a cell or event in the scheduler.
During testing I discovered that the change event is raised whenever something on the scheduler is clicked i.e.
I tried to filter on the e.slots.length property of the event arguments, but this isn't robust enough. When you accidently select a slot and click "Show business hours", the e.slots array is not reset.
selectable: "multiple, cell",edit: function (e) { if (e.model[e.field].readOnly) { this.closeCell(); }}bundles.Add(new ScriptBundle("~/bundles/kendo").Include( "~/Scripts/kendo/kendo.all.min.js", "~/Scripts/kendo/kendo.mobile.min.js", "~/Scripts/kendo/kendo.aspnetmvc.min.js"));bundles.Add(new StyleBundle("~/Content/kendo/css").Include( "~/Content/kendo/kendo.mobile.all.min.css", "~/Content/kendo/kendo.common-bootstrap.min.css", "~/Content/kendo/kendo.bootstrap.min.css"));@Styles.Render("~/Content/css")@Styles.Render("~/Content/kendo/css")@Scripts.Render("~/bundles/modernizr")@Scripts.Render("~/bundles/jquery")@Scripts.Render("~/bundles/bootstrap")@Scripts.Render("~/bundles/kendo")<div class="row"> <div class="col-xs-12 col-lg-8 col-centered" style="max-width:600px;"> <div data-role="view"> @(Html.Kendo().MobileScrollView() .Name("adRotator") .DataSource(ds => ds.Read("GetAdRotatorImages", "Ads", new{id = Model.AdId})) ) </div> </div></div><script> var app = new kendo.mobile.Application();</script>