Categories | Question details Back To List | ||
Treegrid row count I have a treegrid initially filled with 5 rows in level 0. Each row has children in X levels. mygrid.haschildren() function can be used to know the number of children of any row, but I need to know the number of rows in level 0. Is there a function that return this value?? Answer posted on May 10, 2007 10:46 Unfortunately current version doesn't support such functionality. The only way to calculate it - itterate through all rows var count=0; grid.forEachRow(function(id){ if (!grid.getParentId(id)) count++; }); Answer posted by Nadine (Support) on Nov 28, 2014 06:44 Having solved the problem mentioned above, you may also look through the possible related problems with web based spreadsheet application and javascript tree list. |