I want to remove the "All day event" and "Repeat" from the event creation/modification, but I'm not able to do it.
If I remove the variables from the examples I end up getting some error messages.
Can you tell me if this is achievable?
Thank you in advance.
1 Answer, 1 is accepted
0
Veselin Tsvetanov
Telerik team
answered on 01 Aug 2018, 12:51 PM
Hi Manuel,
In order to remove the AllDay field and the RecurrenceEditor from the Scheduler edit pop-up, I would suggest you to implement the following logic for the edit event of the widget:
function onEdit(e) {
var container = $(e.container);
var allDayContainer = container.find('div[data-container-for="isAllDay"]');
var allDayLabel = allDayContainer.prev();
var repeateContainer = container.find('div[data-container-for="recurrenceRule"]');
var repeatLabel = repeateContainer.prev();
allDayContainer.remove();
allDayLabel.remove();
repeateContainer.remove();
repeatLabel.remove();
}
I hope that this helps. Should you have any other questions, please do not hesitate to contact us.