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. Image for the cookie policy date

rest api

hello I would consume data to the URL example:

but I complements the url with parmas [][object%20Object]
so I can not consume data url
Thank you
I use php and javascript

            //var treeGridDataSource = ;
            //var treeGridDataSource = ej.DataManager({ url: "", 
//var treeGridDataSource = ej.DataManager({ url: "http://mvc.syncfusion.com/UGService/api/Orders", crossDomain: true, adaptor: new ej.WebApiAdaptor() });
var promise = ej.DataManager({ url: "", 
offline: true });
var treeGridDataSource = ej.DataManager({ json: records, 
adaptor: new ej.remoteSaveAdaptor(), 
//url: "",
updateUrl: "Home/Update",
removeUrl: "Home/Remove", 
offline:false });

        $(function () {
                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"}

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({ 
                url: "", 
                crossDomain: true 
                dataSource: promise, 
                query: ej.Query().from("usuarios"),                      
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 
Jone sherine P S 

AP andres patiño October 15, 2016 02:46 PM UTC

Syncfusion updated to version 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.   
Jone sherine P S

Live Chat Icon For mobile
Up arrow icon