Is there a way to determine the total number of rows in a treegrid? I’ve tried the following but they only return the count for the nodes that are opened:
getRowsNum()
hasChildren()
rowsBuffer.length
Is there a way to determine the total number of rows in a treegrid? I’ve tried the following but they only return the count for the nodes that are opened:
getRowsNum()
hasChildren()
rowsBuffer.length
You can get only count of visible rows ( expanded branches )
If you need to get a total count of rows the next can be used
var count = 0;
mygrid._h2.forEachChild(function(){ count++; });
alert(count);
FYI: In v2.5, you need the 1st param, which should be “0”.
mygrid._h2.forEachChild(0, function(){ count++; });