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

Load on demand, force to refresh it data

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

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team 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  


Loader.
Up arrow icon