rest api
hello I would consume data to the URL example:
http://52.67.53.54:8080/api/index.php/usuarios
------------
but I complements the url with parmas []
http://52.67.53.54:8080/api/index.php/usuarios/?params=[object%20Object]
so I can not consume data url
Thank you
I use php and javascript
------------
<script>
//var treeGridDataSource = ;
//var treeGridDataSource = ej.DataManager({ url: "http://52.67.53.54:8080/api/index.php/usuarios",
//var treeGridDataSource = ej.DataManager({ url: "http://mvc.syncfusion.com/UGService/api/Orders", crossDomain: true, adaptor: new ej.WebApiAdaptor() });
var promise = ej.DataManager({ url: "http://52.67.53.54:8080/api/index.php/usuarios",
offline: true });
var treeGridDataSource = ej.DataManager({ json: records,
adaptor: new ej.remoteSaveAdaptor(),
//url: "http://52.67.53.54:8080/api/index.php/usuarios",
updateUrl: "Home/Update",
insertUrl:"Home/Insert",
removeUrl: "Home/Remove",
offline:false });
$(function () {
$("#TreeGridContainer").ejTreeGrid({
dataSource: treeGridDataSource,
//childMapping: "subtasks",
columns: [
{ field: "id_usuario", headerText: "id_usuario" },
{ field: "email", headerText: "email"},
{ field: "contrasena", headerText: "contrasena" },
{ field: "profesion", headerText: "profesion"},
{ field: "cargo", headerText: "cargo"}
]
});
});
</script>
SIGN IN To post a reply.
3 Replies
JS
Jonesherine Stephen
Syncfusion Team
September 29, 2016 03:39 PM UTC
Hi Andres,
Thanks for contacting Syncfusion support.
We have prepared the workaround and populated the data source in TreeGrid using ejQuery and ejDataManager.
Please find the code example below:
|
<script type="text/javascript">
$(function () {
var promise = ej.DataManager({
crossDomain: true
});
$("#treegrid").ejTreeGrid({
//
dataSource: promise,
query: ej.Query().from("usuarios"),
});
});
</script> |
We have also prepared the sample for your reference. Please find the sample from below link.
Please find our Knowledge base to perform the CRUD operation in TreeGrid using PHP
Please let us know if you need further assistance on this
Regards,
Jone sherine P S
AP
andres patiño
October 15, 2016 02:46 PM UTC
Syncfusion updated to version 14.3.0.49 and the connection to the database did not work. What would the connection now ?,
I find no documentation.
Thank you
JS
Jonesherine Stephen
Syncfusion Team
October 17, 2016 01:21 PM UTC
Hi Andres,
We regret about the inconvenience caused.
Please share us the details regarding database you are using and also the sample based on your application along with the replication procedure. It will be very helpful for us to understand your requirement clearly and update the response.
Please let us know if you need more information on this.
Regards,
Jone sherine P S
Jone sherine P S
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
AP andres patiño
- Sep 28, 2016 08:14 PM UTC
- Oct 17, 2016 01:21 PM UTC