Post in datamanger

How would I make datamanager send a request as post rather than get for read 
var dataManager = new ej.data.DataManager({
url: apiUrl,
adaptor: new ej.data.WebApiAdaptor(),
requestType: "POST"
});
Tried changing the requestType to POST but this didnt work.

1 Reply

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team October 15, 2019 11:17 AM UTC

Hi Premith,  

You cannot use the WebApiAdaptor with the request type as ‘POST’ to retrieve the data from the server-end. But you can use the URLAdaptor to request the same using the POST.  

var dataManager = new ej.data.DataManager({
   
url: apiUrl,
   
adaptor: new ej.data.UrlAdaptor() 
}); 


Regards,  
Seeni Sakthi Kumar S 


Loader.
Up arrow icon