Kindly requesting for help to make the dynamic grid add and remove execution faster. I'm having a tree grid, which has 4 static columns and after that, some dynamic columns based on the hasMany relationship data in the store.
I can able to get the grid work, but it is taking more than 3 mins to render the data. Here is my code below, and request your help to make the code execute faster(very urgent). And the data will be available only in the leaf node.
// removing the column if there is any dynamic column added
function removeColumnsIfExists(){
var headerCols=grid.getView().getGridColumns();
for(var i=4; i<headerCols.length; i++){
grid.headerCt.remove(i);
}
grid.getView().refresh();
}
// creating dynamically new column to display the date field
function createFlatStore_1(node){
removeColumnsIfExists();
if(node){
if(node.hasChildNodes()){
var children=node.childNodes;
for(var i=0;i<children.length;i++){