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
close icon

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.
Live Chat Icon For mobile
Up arrow icon