Batch Request

Hi,

I'm using the schedule component binding the data remotely using WebApi adaptor, so in the delete actions, is there any way to modify the way the request are made, because they are by default in batch mode, and my server does not support batch request mode? 

Other question is why when asking the dataManager in the first time for the data events (GET REQUEST), it request four times the same? I've seen that in your examples request only once. 

THANKS!

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team October 19, 2018 12:30 PM UTC

 
Thank you for contacting Syncfusion support. 
 
We have prepared the Web API CRUD sample without batch mode which can be downloaded from the below links. 
 
First run the service sample, then assign the localhost link to the Scheduler data source as shown below. In the above sample, there are only two requests to the controller function during its initial load, one to ensure the connection establishment and another to retrieve the data. Kindly share your sample (if possible) / code example / image / video demo which clearly depicts the issue to proceed further. 
 
public render() { 
    return <ScheduleComponent  
    height='550px' selectedDate={new Date(2018, 9, 1)} 
    eventSettings={ {  
      dataSource : new DataManager({ 
        url: "http://localhost:25255/api/Batch", 
        crossDomain: true, 
        adaptor: new UrlAdaptor 
    }), 
    dataQuery : new Query().from("EventDatas"), 
 
      } }> 
      <Inject services={[Day, Week, WorkWeek, Month,Agenda, Resize, DragAndDrop]} /> 
    </ScheduleComponent> 
    }  
 
 
Regards, 
Karthigeyan 
 
 
 


Loader.
Up arrow icon