Home Unanswered Active Tags New Question

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.




Asked by Bhawesh Jha 3 years ago.
Replies
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).
Comment posted by Dan Letecky 3 years ago.
thanks
Comment posted by Bhawesh Jha 3 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java