Add rows after creating ree grid does not show hierarchy

          
     create a grid 
          this._grid = new ej.treegrid.TreeGrid({
                   ...: ...
        });

     you add rows after creation

var rows -= [
     {..: ..}
     ];
          grid.setProperties({ dataSource: rows });

failed to show the hierarchy

tried to force expand all rows. Give me  a runtime error

            this._grid.expandAll();


Any ideas

-SK


1 Reply 1 reply marked as answer

SE Sathyanarayanamoorthy Eswararao Syncfusion Team January 14, 2021 07:40 AM UTC

Hi Sampurnima, 

Thanks for using Syncfusion products. 

Query : Add rows after creating tree grid does not show hierarchy 
 
We have created a sample with the given code example, but we are not able to replicate the reported issue on our side. Refer the below link for the sample. 


Please share the following details, which can be helpful to analyze the issue further and provide the solution as soon as possible. 

  1. Share the complete code example of the treegrid.
  2. Share the Essential Studio version details.
  3. If possible please try to replicate the issue in provided sample.

Regards, 
Sathyanarayanamoorthy 


Marked as answer
Loader.
Up arrow icon