The default event duration is depending on the duration of the slots. If it is two hours slot, then when creating a new event, by default it will span two hours, but still a shorter or longer time could be selected.
If you need to have a slot of for example 30 minutes, but when creating a new event the default duration to be two hours, we can suggest the following approach: on Edit event
, if a new event is being created, the editor's end DateTimePicker's value to be set to 2 hours after after the start DateTimePicker's value. When the new value of the DateTimePicker
is set the change event
has to be triggered.
You could find the described implementation in the following Dojo