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

How to hide the X (Delete) Button on an Event

Asked by Hoang Nguyen
5 years ago.

I have a scheduler with several resources and events. By using eventDeleteHandling: 'Update', this will display an X button on the upper right corner of each event. How do I hide this X Button on an individual event but not all event? Thank you very much

Answer posted by Dan Letecky [DayPilot]
5 years ago.

You can use deleteDisabled property to disable the delete icon for selected events.

You can add it to the raw event data object on the server side or you can set it using onBeforeEventRender:

dp.onBeforeEventRender = function(args) {
  args.data.deleteDisabled = true;
};
Comment posted by Hoang Nguyen
5 years ago.

Thank you sir very much. It is working like a charm

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.