search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot Scheduler - cannot set the CellGroupBy at run time

Asked by peter cli
17 years ago.

I want to switch between month, year, day views etc.

I don't see any way to change DayPilotScheduler1.CellGroupBy

Thanks,Peter

Comment posted by Dan Letecky
17 years ago.
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.
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.