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

Attach Data Post

Thread ID:





121268 Nov 25,2015 11:11 AM UTC Nov 27,2015 10:22 AM UTC JavaScript 3
Tags: ejDataManager
Yvan Theaudin
Asked On November 25, 2015 11:11 AM UTC

I attach desired data in the POST data manager

exemple :
var dataMangerCategorie = ej.DataManager({
    url: "http://" + window.location.hostname + "/Layout/json.php?TYPE=AGENDACATEGORIE",
Data : { :"1,2,3,4" , L: "99999xxxx, 88sssss}


Ragavee U S [Syncfusion]
Replied On November 26, 2015 04:57 AM UTC

Hi Yvan,

Thanks for contacting Syncfusion support.

We analyzed your requirement to pass additional parameters to the ejDataManager POST request. We suggest you to use the addParams method of ej.Query() and pass the query to executeQuery method of the ejDataManager.

The ej.Query() is used to retrieve data from the dataSource based on the query passed using the ej.Query() methods. The executeQuery method of the ejDataManager is used to execute the queries passed to it on the datamanager when remote data is bound as dataSource.

Please refer to the below online documentation for more information on the various methods available in ejDataManager and ejQuery.



Ragavee U S.

Yvan Theaudin
Replied On November 26, 2015 07:14 PM UTC


I just tested it sends the GET not POST

Attachment: img_fc87ed7e.zip

Ragavee U S [Syncfusion]
Replied On November 27, 2015 10:22 AM UTC

Hi Yvan,

We suggest you to use UrlAdaptor inorder to send a POST request using ejDataManager. Please refer to the below online documentation for more information on Data Adaptors.


Please refer to the below online blog for a sample explaning CRUD operations in Grid control rendered using PHP.


We can pass the additional parameters to the ejDataManager query as in the below code snippet.

var data = ej.DataManager({

    url: 'http://localhost/phpservice/server.php/?action=get_Data',

    insertUrl: 'http://localhost/phpservice/server.php/?action=insert_Data',

    updateUrl: 'http://localhost/phpservice/server.php/?action=update_Data',

    removeUrl: 'http://localhost/phpservice/server.php/?action=delrec',

    adaptor: new ej.UrlAdaptor()
}).executeQuery(ej.Query().addParams("EmployeeID", 1).take(50));

Ragavee U S.


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

This page will automatically be redirected to the 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