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

Filtering and applying changes from remote source

Thread ID:

Created:

Updated:

Platform:

Replies:

145236 Jun 13,2019 09:19 AM UTC Jun 14,2019 05:57 AM UTC Angular - EJ 2 1
loading
Tags: Schedule
Vasil
Asked On June 13, 2019 09:19 AM UTC

I've setup the schedule, it works well with its integrated controls, but can't find an example of filtering after initializing the control.
So, for example, once it loaded the default data, I need to send another request to the server with some filters and load the new data from it.

Tried something like this, it fires a request but the changes aren't applied to the schedule. Can't find a clear example of what should I do in the promise to reflect the changes.
this.dataManager.executeQuery(new Query().page(1, 8)).then(()=>{

});

Nevitha Ravi [Syncfusion]
Replied On June 14, 2019 05:57 AM UTC

Hi Vasil, 

Greetings from Syncfusion Support. 

We suspect that you might missed to assign the filtered data collection to the scheduler datasource which could be the problem. Please use the following code to load the new filtered data and for the same we have prepared sample for your reference in that the events with ID as 100 has been filtered and assigned to scheduler which can be viewed from the following link. 

  click() { 
    var dataManager1 = "https://js.syncfusion.com/demos/ejservices/api/Schedule/LoadData"; 
    var dManager = new DataManager({ url: dataManager1 }).executeQuery(new Query()).then((e) => { 
      var data = (e as any).result; 
      let result: Object[] = new DataManager(data).executeLocal(new Query().where('Id', 'equal', 100)); 
      this.scheduleObj.eventSettings.dataSource = result; 
      console.log(result); 
    }); 
  } 

Please try out the sample and let us know if you need any further assistance.  

Regards, 
Nevitha 


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