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.

rest api

Thread ID:

Created:

Updated:

Platform:

Replies:

126179 Sep 28,2016 04:14 PM Oct 17,2016 09:21 AM JavaScript 3
loading
Tags: ejTreeGrid
andres patiño
Asked On September 28, 2016 04:14 PM

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>

Jonesherine Stephen [Syncfusion]
Replied On September 29, 2016 11:39 AM

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: "http://52.67.53.54:8080/api/index.php", 
                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 


andres patiño
Replied On October 15, 2016 10:46 AM


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

Jonesherine Stephen [Syncfusion]
Replied On October 17, 2016 09:21 AM

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
 


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.

;