I am working on a C# MVC (5.2.2) App using Kendo.MVC 2015.3.930.545 (VS 2013 .NET 4.5.1)
Obviously I would like to be able to refresh/update the scheduler when changing the date(s). I am not using the JSON-based functions as the demos use. For my other Telerik controls, the same holds true. That is, I use plain/vanilla server calls to the server instead. I do capture some events using JS and do make AJAX calls to refresh data where/when applicable. I would like to use this approach for the Scheduler but I need help w/this control.
In this case, I would like to know how I can capture the change of dates. I am not able to use the "Navigate" event nor .Data() for the .DataSource's .Read() method in my code (am I missing some lib? dll?):
Here is my Scheduler control in my .cshtml file:
.StartTime(new DateTime(System.DateTime.Now.Year,System.DateTime.Now.Month,System.DateTime.Now.Day, 5, 00, 00))
views.DayView(dayView => dayView.Selected(true));
.DataSource(d => d
//.Read(read => read.Action("Details", "Inspections"))
The "Navigate" event is not available nor is the .Data() item for the .Read() method (for DataSource).
I get this error @ runtime for the .Data() item:
Compiler Error Message: CS1061: 'Kendo.Mvc.UI.Fluent.SchedulerAjaxDataSourceBuilder<EPIMS.Models.TaskViewModel>' does not contain a definition for 'Data' and no extension method 'Data' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.SchedulerAjaxDataSourceBuilder<EPIMS.Models.TaskViewModel>' could be found (are you missing a using directive or an assembly reference?)
and this error @ runtime for the e.Navigate event:
Compiler Error Message: CS1061: 'Kendo.Mvc.UI.Fluent.DataSourceEventBuilder' does not contain a definition for 'Navigate' and no extension method 'Navigate' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.DataSourceEventBuilder' could be found (are you missing a using directive or an assembly reference?)
Am I using old API calls? How can I capture the change of dates?