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

Add additional parameters into DataManager before load

Thread ID:





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


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.    


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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