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

How to make event in disabled Cell clickable

Asked by Fabian
2 months ago.

I use args.cell.disabled = true for certain cells because I don't want the user to drag or place events there. The area is used to display static events, that the user shall not be able to modify.

Now, I want these static events to be clickable. I want to add a simple link/redirection if the user clicks on it. For the regular events I use the onEventClick method to display a modal. Is there a way to make the static events disabled but clickable?


Answer posted by Dan Letecky [DayPilot]
2 months ago.

You can add moveDisabled and resizeDisabled properties to the event data object. This will forbid drag operations but the onEventClick event handler will still be fired for such events:{
  start: "2021-01-26T00:00:00",
  end: "2021-01-28T00:00:00",
  id: 1,
  resource: "A",
  text: "static",
  moveDisabled: true,
  resizeDisabled: true
New Reply
This reply is
Your name (optional):