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.
Unfortunately, activation email could not send to your email. Please try again.

Load on demand, force to refresh it data

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 07:39 AM

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.

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.

;