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
3 years 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?

Thanks!

Answer posted by Dan Letecky [DayPilot]
3 years 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:

dp.events.list.push({
  start: "2021-01-26T00:00:00",
  end: "2021-01-28T00:00:00",
  id: 1,
  resource: "A",
  text: "static",
  moveDisabled: true,
  resizeDisabled: true
});
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.