Devextreme Scheduler maxAppointmentsPerCell值不能设置为具有多个视图(日,周,月)

时间:2018-11-27 14:20:44

标签: scheduler devextreme devextreme-angular

我在Angular 4项目中使用devextreme Scheduler。我正在使用月,周和日视图。当我将maxAppointmentsPerCell的值设置为2时,它给出

  

错误RangeError:视图更改时出现无效的时间值错误。

我的代码:

<dx-scheduler
#scheduler
[dataSource]="schedulerData"
[views]='["day", "week", "month"]'
currentView="month"
[currentDate]="currentDate"
[startDayHour]="0"
[endDayHour]="24"
[showAllDayPanel]="false"
[firstDayOfWeek]="1"
[focusStateEnabled]="true"
(onAppointmentRendered)="onAppointmentRendered($event)"
(onAppointmentClick)="onApponintmentClick($event)"
(onOptionChanged)="onOptionChanged($event)"
(onCellClick)="onCellClick($event)"
(onAppointmentUpdating)="onAppointmentUpdating($event)"
maxAppointmentsPerCell="2"
[height]="800">
<dxo-editing #editingOptions
    [allowAdding]="false"
    [allowUpdating]="true"
    [allowDeleting]="false"
    [allowResizing]="true"
    [allowDragging]="true"
></dxo-editing>
</dx-scheduler>

当我将maxAppointmentsPerCell的值设置为'unlimitedied'时,它不会抛出错误。但是,当一个月的约会超过5次时,约会文本就会消失。我需要将该值最多设置为4,但是我不知道如何处理该错误。我该如何解决这个问题?

0 个答案:

没有答案