How can I do navigation (next and previous month) with the DayPilot Lite MVC month view ?
You can switch dates using .commandCallBack() method:
Handle OnCommand event on the server side:
protected override void OnCommand(CommandArgs e)
StartDate = StartDate.AddMonths(-1);
StartDate = StartDate.AddMonths(1);
StartDate = DateTime.Today;
See also the documentation for the Pro version, it works the same way:
You need to upgrade to version 1.3.400 (the previous version has a bug in DayPilot.Month.commandCallBack()).
Thanks a lot! You made my day :) I guess the solution came with version 1.3.400.
Btw, the demo project DayPilotLiteMvc-1.3.400 does not launch in VS 2013. See my screendump.
There was a bug in 1.3.399 that threw an exception in commadCallBack() in DayPilot.Month.
Thanks for reporting the VS 2013 issue, I will check that.