Expand / Hide tree layers in gridtree

I would like to use click or doucble click to expandehide tree items, just as i now uses the [+] symbol. Is there any code that I can use to toggle tree items to show/hide?

You can add next code to grid’s init

grid.attachEvent(“onRowDblClicked”,function(id){
this.openItem(id);
})