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

Can't get TreeGrid to work

Thread ID:





143645 Mar 29,2019 03:44 PM UTC May 2,2019 10:06 AM UTC JavaScript - EJ 2 1
Tags: TreeGrid
Rodrigo Souza
Asked On March 29, 2019 03:44 PM UTC


I can't get TreeGrid to work. I saw the demos, and this sample https://stackblitz.com/edit/xv88ni-xslyrc?file=index.js
but when I copy and paste on my server, I get a blank page.
I already checked the Debug console on Chrome and everything is loaded. I don't know more what to do.
If someone could give a help, I'll be thankfull.


Vignesh Natarajan [Syncfusion]
Replied On May 2, 2019 10:06 AM UTC

Hi Rodrigo,  
Thanks for contacting Syncfusion support.  
Query: “Can't get TreeGrid to work” 
From your query, we understand that you are facing issue while copying and pasting the code example from stackblitz. In stackblitz, JavaScript file (index.js) will be automatically referred in the index.html file. But while running the sample locally, JavaScript file (index.js) must be referred in the index.html page to render the controls (TreeGrid) properly. So we suspect that (index.js) is not referred in the index.html file hence the reported issue occur.  
So to overcome the reported issue, we suggest you to refer the index.js file in the index.html file. Refer the below code  
        <script src="https://ej2.syncfusion.com/javascript/demos/tree-grid/stacked-header/datasource.js" type="text/javascript"></script> 
        <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js" type="text/javascript"></script> 
        <link rel='nofollow' href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> 
        <link rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" rel="stylesheet"> 
                touch - action: none; 
           <div class="stackblitz-container material"> 
               <div class="control-section"> 
                   <div class="content-wrapper"> 
                       <div id="TreeGrid"></div> 
            <script src="index.js" type="text/javascript"></script> 
Please get back to us if you have further queries.        
Vignesh Natarajan. 


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

Live Chat Icon For mobile
Live Chat Icon