Problems with collapsAll() in IE6

Hello,

I have the follow Problem with collapsAll(), it will not work:

dhtmlXGridObject.prototype.close_all_open_first = function()
{
sajaIndicatorIncrease();
var self = this;
setTimeout(function () {
var s = self;
s.collapseAll();
// öffne den ersten Knoten
for (var a in s.rowsAr)
if (s.rowsAr[a] && s.rowsAr[a].idd)
{
var id = s.rowsAr[a].idd;
s.openItem(id);
break;
}
sajaIndicatorDecrease();
}, 50);
return false;
};

a second try, that will have the same Problem:
function grid_close_all(grid)
{
sajaIndicatorIncrease();
setTimeout(function () {
grid.collapseAll();
// öffne den ersten Knoten
for (var a in grid.rowsAr)
if (grid.rowsAr[a]&&grid.rowsAr[a].idd)
{
var id = grid.rowsAr[a].idd;
grid.openItem(id);
break;
}
sajaIndicatorDecrease();
}, 50);
return false;
}

If I change the grid.collapsAll() to mygrid.collapsAll() than it work for this “global” var mygrid.

I hope you can help me for this.

Greetings

Frank

I have the follow Problem with collapsAll(), it will not work:
collapsAll() works correctly at local example dhtmlx.com/docs/products/dht … group.html