dhtmlxTreeGrid Expand Row and childrens (sub rows)

I try to expand and theris childrens on onRowDblClicked but it is extremely slow. This is my code:

		mygrid.attachEvent("onRowDblClicked", function(rId,cInd){
			if (cInd==0){				
				//mygrid.startFastOperations(); // no work
					if(mygrid.getOpenState(rId)){
						mygrid.closeItem(rId);
					}
					else{
						var childrenidlist = mygrid.getAllSubItems(rId);
						if(childrenidlist!=null){
							mygrid.openItem(rId);
							var childrenlist = childrenidlist.toString().split(",");	
							for(var i=0;i<childrenlist.length;i++){
								var id = childrenlist[i];
								if(mygrid.hasChildren(id)>0){
									var tipo=mygrid.cells(id,0).getValue();	  
									console.log("Row("+id+"): "+tipo);
									mygrid.openItem(id);
								}
							}
						}			
					}
				console.log("--------- STOP----------");
				return false
			}
			return true
		});

There must be a better solution but I can’t find it. When I execute expandAll full tree is open very fast.

Unfortunately it’s not available to improve the performance of the code with such scenario.

This is the solution:

function miexpandoAllEspecial(mygrid,rowId){
mygrid._renderAllExpand(rowId||0);
mygrid._h2_to_buff();
mygrid._reset_view();
mygrid.setSizes();
mygrid.callEvent(“onGridReconstructed”,[]);
mygrid._redrawLines&&mygrid._redrawLines()
}