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 » How To » How can we disable cell click

How can we disable cell click

Hello

I want to disable cell click on particular time period. I tried with BeforeCellrender event, but it doesn't have any property so that i can disable click on particular cell. I have a datatable of Dayofweek(monday, tuesday, etc), From-hour and to-hour. And I want to disable area from From-hour to To-hour on specific day. Please suggest.




Bhawesh Jha - 5/29/2008 2:49:13 PM
It's not possible to achieve this smoothly at the moment.
  • You are able to handle this on the client side (TimeRangeSelectedHandling="JavaScript") or on the server side (TimeRangeSelectedHandling="CallBack" or "PostBack"). In the event handler, you can deny requests that include the forbidden times.
  • However, it's not possible to prevent this before the TimeRangeSelected event is fired (i.e. you will always be able select any cell).
Dan Letecky - 6/1/2008 9:45:23 PM
thanks
Bhawesh Jha - 6/2/2008 9:51:36 AM
Post reply