Hi Sonam,
We have checked your provided code example and could reproduce the reported problem at our end, which was suspected to be due to the “resourceHeaderTemplate” property is not properly handled during the set state changes. Currently, we are validating the scenario further related to this particular template property and therefore, in the mean-time, we suggest you to try our following highlighted code changes (by declaring a variable/property for the selectedDate and group properties and assign those variables to the respective APIs of the ScheduleComponent instead of directly assigning the value) which could also be referred from the below StackBlitz sample. Also, further information regarding this issue validation will be shared from our side on March 29, 2019.
Property |
Existing Code |
Suggested Workaround |
selectedDate
|
<ScheduleComponent ref={schedule => this.scheduleObj = schedule} cssClass='schedule-drag-drop' width='100%' height='650px' selectedDate={new Date(2018, 7, 1)} currentView='TimelineDay' resourceHeaderTemplate={this.resourceHeaderTemplate}
|
<ScheduleComponent ref={schedule => this.scheduleObj = schedule} cssClass='schedule-drag-drop' width='100%' height='650px' selectedDate={this.date} currentView='TimelineDay'
|
group
|
group={{ resources: ['Departments', 'Consultants'] }}
|
group={this.grp}
|
Kindly be patience, until we get back to you with the issue validation information.
Regards,
Hareesh B