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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Block Appointments generate JS error and trigger onActionFailure

Thread ID:

Created:

Updated:

Platform:

Replies:

146897 Aug 24,2019 10:22 AM UTC Aug 26,2019 10:45 AM UTC ASP.NET Core - EJ 2 1
loading
Tags: Scheduler
Stefan
Asked On August 24, 2019 10:22 AM UTC

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?


Karthigeyan Krishnamurthi [Syncfusion]
Replied On 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 
 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon