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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Add additional parameters into DataManager before load

Thread ID:

Created:

Updated:

Platform:

Replies:

129326 Mar 13,2017 03:22 PM UTC Mar 14,2017 12:14 PM UTC Angular 1
loading
Tags: ejDatamanager
Me
Asked On March 14, 2017 07:28 AM UTC

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 }]});



Prince Oliver [Syncfusion]
Replied On 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   


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.

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

;