cannot use ScheduleViewTimescale when using EventTemplate

I'm using an eventtemplate when in timelineWeek view and I'm not able to use the ScheduleViewTimescale while doing so.  Is this intended behaviour or is this possibly a bug?


Screenshot 2021-11-18 194835.jpg


1 Reply

VD Vinitha Devi Murugan Syncfusion Team November 19, 2021 09:18 AM UTC

Hi HappyCamper, 
 
Greetings from Syncfusion support. 
 
We have validated your reported issue “Unrecognized child content inside component 'ScheduleView'” at our end. We suggest you to use the ScheduleViewTimeScale element inside a ChildContent element like below code to resolve your reported problem. 
 
<ScheduleView Option="View.TimelineWorkWeek"> 
<EventTemplate> 
    <div>Subject: @((context as Appointment).Subject)</div> 
    <div>StartTime: @((context as Appointment).StartTime)</div> 
    <div>EndTime:  @((context as Appointment).EndTime)</div> 
</EventTemplate> 
 
<ChildContent> 
    <ScheduleViewTimeScale Enable="true" Interval="60" SlotCount="1"> 
    </ScheduleViewTimeScale> 
</ChildContent> 
</ScheduleView> 
 
Please refer below common forum for more information. 
 
 
Kindly try with the above solution and get back to us if you need any further assistance. 
 
Regards, 
Vinitha 


Loader.
Up arrow icon