TreeGrid Persistance

Is it possible to put persistance on the treegrid? 

I have been looking at documentation and i am unable to find anything. 

Cheers

Paul     

1 Reply

PE Punniyamoorthi Elangovan Syncfusion Team May 23, 2018 02:05 PM UTC

Hi Paul, 
Thank you for contacting Syncfusion support. 
In TreeGrid we can persist the required actions by enabling the enablePersistence property and we can add the required actions in the _addToPersist available in the TreeGrid’s prototype. Please refer the below code snippet. 
<script type="text/javascript"> 
  ej.TreeGrid.prototype._addToPersist = ["filterSettings.filteredColumns", "selectedRowIndex"]; 
      $("#TreeGridContainer").ejTreeGrid({ 
               dataSource: sampleData, 
                childMapping: "subtasks", 
                treeColumnIndex: 1, 
                enablePersistence: true, 
                 
                //.. 
        }); 
  </script> 
We have prepared the sample for your reference please find the sample link below 
Also we will include this content in our online documentation and will publish it soon. 
 
Regards, 
Punniyamoorthi 
 


Loader.
Up arrow icon