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

Block Appointments generate JS error and trigger onActionFailure

This has been working fine previously, and I've checked the changelog for breaking changes but found none: When the scheduler view contains a block appointment, onActionFailure is triggered and no appointments are displayed at all:

ERROR: actionFailure
kycdock-ej2.min.js:9 Uncaught TypeError: this.parent.getHeaderTooltipTemplate(...) is not a function
    at t.e.createBlockAppointmentElement (kycdock-ej2.min.js:9)
    at t.renderBlockEvents (kycdock-ej2.min.js:9)
    at t.processBlockEvents (kycdock-ej2.min.js:9)
    at t.renderEventsHandler (kycdock-ej2.min.js:9)
    at t.renderResourceEvents (kycdock-ej2.min.js:9)
    at t.renderAppointments (kycdock-ej2.min.js:9)
    at t.renderEvents (kycdock-ej2.min.js:9)
    at e.notify (kycdock-ej2.min.js:9)
    at t.notify (kycdock-ej2.min.js:9)
    at t.onScheduleResize (kycdock-ej2.min.js:9)

I'm using this setup:
<e-schedule-eventsettings dataSource="dataManager" enableTooltip="true" tooltipTemplate="#tooltipTemplate">

<!-- Template for Tooltip -->
    <script id="tooltipTemplate" type="text/x-template">
            <div class="tooltip-wrap">
                <div>${getUserName(data.Owner)}:<br /> ${Subject}</div>
                <div class="content-area">
                    ${if(Location && Location !== null)}<div class="name">${Location}</div>${/if}
                    <div class="time">Von:&nbsp;${StartTime.toLocaleString()} </div>
                    <div class="time">Bis:&nbsp;&nbsp;${EndTime.toLocaleString()}</div>                    
                    ${getCrewCapacity(data)}
                    ${createListFromArray(getCrewListNames(data.Attendees)).outerHTML}
                </div>
            </div>
    </script>

Any ideas, please?


1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team August 26, 2019 10:45 AM UTC

 
Syncfusion greetings. 
 
We have checked the reported scenario in latest version and event are displaying correctly with block interval and tooltip combination. Kindly try the sample and if the issue persists, try to reproduce the error in a sample and revert else share build version, your template code example (with JS code) /runnable sample (if possible) to serve you better. 
 
Regards, 
Karthi 
 
 


Loader.
Live Chat Icon For mobile
Up arrow icon