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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Load on demand, force to refresh it data

Thread ID:

Created:

Updated:

Platform:

Replies:

126388 Oct 12,2016 06:30 PM UTC Oct 13,2016 11:39 AM UTC JavaScript 1
loading
Tags: ejSchedule
roberto
Asked On October 12, 2016 06:30 PM UTC

Hi.

I'm using Schedule integrated with angular for some events on appointment and the data is retrieved though the data manager framework.

<script id="schedule" type="text/javascript">
    //Data manager for EJ Scheduler
    var dataMng = ej.DataManager({
        url: 'Operacion/GetData',
        crossDomain: true,
        adaptor: new ej.UrlAdaptor()
    });
</script>
// Snippet for angular controller function
function controllerOperacion($scope, $filter, $uibModal, $log, semanas) {
    $scope.title = 'Días/Semanas de Operación';
    $scope.semanaActual = null;
    $scope.semanaTitle = '--';
    $scope.semanaSubTitle = 'Seleccione día/semana';
    $scope.diaActual = null;
    $scope.diaTitle = '--';
    $scope.diaSubTitle = 'Seleccione día';
    $scope.appointments = dataMng;

I add new appointments outside the scheduler, so I need to tell datamanager to load again the data to refresh the UI. There is a way to do this ? I appreciate any help on this.

Thanks in advance

Karthigeyan Krishnamurthi [Syncfusion]
Replied On October 13, 2016 11:39 AM UTC

Hi Roberto,   
   
Thank you for contacting Syncfusion support.   
   
An appointment element within the Schedule control can be refreshed using refreshAppointments function. Kindly visit the below link to know more about the function.   
  
Regards,   
Karthigeyan  


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.

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

;