We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

TimeScale returning error

Hello,

I want the popup open form, from and to dates fields to display a difference of 30 minutes. I have include the below code to my scheduleComponent however it returns the below error.

Code

<ScheduleComponent width='100%' height='755px' cssClass='schedule-date-header-template' showHeaderBar={true} showQuickInfo={false} currentView='Month' ref={t => this.scheduleObj = t} eventSettings={{
dataSource: filtered_data_update,
fields: { id: 'requestId', subject: { name: 'tenantName' }, location: { name: 'zoneName' }, startTime: { name: 'startDateTime', validation: { required: true } }, endTime: { name: 'stopDateTime', validation: { required: true } }, RecurrenceRule: { name: 'RecurrenceRule' }, zoneId: { name: 'zoneId' } },
enableTooltip: true,
tooltipTemplate: this.template.bind(this),
}}
editorTemplate={this.editorTemplate}
popupOpen={this.onPopupOpen.bind(this)}
cellDoubleClick={this.cellDoubleClick.bind(this)}
renderCell={this.onRenderCell.bind(this)}
allowDragAndDrop={true}
eventRendered={this.onEventRendered.bind(this)} actionBegin={this.onActionBegin.bind(this)} actionComplete={this.onActionComplete.bind(this)}
refreshEvents={this.refreshEvents.bind(this)}
created={this.onCreate(filtered_data_update)}
timeScale={ { enable: true, interval: 60, slotCount: 2 }}
>

<Inject services={[Day, Week, WorkWeek, Month, Agenda, Resize, DragAndDrop]} />
</ScheduleComponent>



error:

×
1 of 2 errors on the page
TypeError: Cannot read property '0' of undefined




1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team February 5, 2019 05:39 AM UTC

 
Thank you for contacting Syncfusion support. 
 
We have checked the reproted scenario and Schedule is rendered without any script error. We have prepared the below sample for your reference and suspect that customization used in your sample could be the cause. Kindly try the sample and if the issue persists, try to reproduce the error in a sample and revert else share your complete code example/runnable sample (if possible) to serve you better. 
 
Note: By default, Scheduler time internval will be 30mins.  
 
Regards, 
Karthigeyan 


Loader.
Live Chat Icon For mobile
Up arrow icon