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

Add additional parameters into DataManager before load

Hello,


Can't find a solution how can I programmatically add additional parameters into DataManager?

For example I would like to send this in post body: MyTestName=Hello


      var dataManager = new ej.DataManager({ url: "www.example.com/getMenuPost", crossDomain: true, adaptor: new ej.UrlAdaptor(),
             headers: [{Authorization: 'Bearer ' + JSON.parse(localStorage.getItem('currentUser')).authToken }]});



1 Reply

PO Prince Oliver Syncfusion Team March 14, 2017 12:14 PM UTC

Hi Me,   
  
Thank you for contacting Syncfusion support.   
  
To add an additional parameter in the DataManager, you can use addParams method in DataManager.    
  
  
Regards,   
Prince   


Loader.
Live Chat Icon For mobile
Up arrow icon