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.
Unfortunately, activation email could not send to your email. Please try again.

Add additional parameters into DataManager before load

Thread ID:

Created:

Updated:

Platform:

Replies:

129326 Mar 13,2017 11:22 AM Mar 14,2017 08:14 AM Angular 1
loading
Tags: ejDatamanager
Me
Asked On March 14, 2017 03:28 AM

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 08:14 AM

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.

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.

;