DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Bugs » DayPilot Scheduler - cannot set the CellGroupBy at run time

DayPilot Scheduler - cannot set the CellGroupBy at run time

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

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

Thanks,Peter

peter cli - 10/5/2007 1:36:06 AM
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.
Dan Letecky - 10/8/2007 8:40:32 AM
Post reply