In order to switch the views, you need to change the following properties:
- Days
- CellDuration
- CellGroupBy
- StartDate (optionally)
- CellWidth (optionally)
It's possible to change these properties during the initial loading (e.g. in Page_Load), during PostBack, or during CallBack inside Refresh event handler. It's not possible to change it inside other CallBack event handlers (like TimeRangeSelected, EventClick) because they update just the events.
For an example, you can check the DayPilot package, file Demo/Scheduler/Default.aspx and Default.aspx.cs.