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

Data not loading initial loading

Partial page with ejs-scheduler data not showing if current view property to month but if we set it to week data displays correctly. we using .net core razor page .Please check attach image its showing more text instead on data into the scheduler. Scheduler.JPG


4 Replies

NP Nitin Pawar November 8, 2022 08:29 AM

Please find attached file for reference.


Attachment: Schedular_4bd8b8bf.7z


RM Ruksar Moosa Sait Syncfusion Team November 10, 2022 09:21 AM

To resolve this issue, call the refreshEvents of the schedule instance in the dataBinding event of the scheduler.


Index.cshtml]

function onDataBinding(args) {

        var scheduleObj = document.getElementById('schedule').ej2_instances[0];

        scheduleObj.refreshEvents();

    }


Output:

Graphical user interface, application

Description automatically generated


Attachment: SchedularModifiedSample_e09ca34d.zip


NP Nitin Pawar November 15, 2022 01:48 AM

After clicking on view calendar it goes to infinite loop as show in the screenshot below and also clicking on event details is not showing.





RM Ruksar Moosa Sait Syncfusion Team November 16, 2022 11:51 AM

Refresh the schedule events using the setTimeout function in the onclick event of the anchor tag like the below code.


<a class="modal-effect" data-bs-effect="effect-super-scaled" data-bs-toggle="modal" rel='nofollow' href="#modalCalendarWindow" onclick="onCalenderClick()">

<i class="fe fe-calendar me-2"></i>View Calendar

</a>


function refreshScheduler(){

var schedule = document.querySelector('.e-schedule');

if (schedule && schedule.ej2_instances[0]) {

                schedule.ej2_instances[0].refreshEvents();

            }

        }

 

        function onCalenderClick() {

            setTimeout(() => { refreshScheduler() }, 1000);

        }



Attachment: AspCoreScheduleonrel='nofollow' href_c07fc1b3.zip

Loader.
Live Chat Icon For mobile
Up arrow icon