jQuery UI Widgets › Forums › TreeGrid › Number of rows
Tagged: get, getrows, jqxTreeGrid, number, row, tree grid, treegrid
This topic contains 2 replies, has 2 voices, and was last updated by Dimitar 9 years, 1 month ago.
Does anyone know how to get the total number of rows in a treeGrid?
I tried the grids method:
var rowscount = $(“jqxGrid”).jqxGrid(‘getdatainformation’).rowscount;
var rowscount = $(“jqxTreeGrid”).jqxTreeGrid(‘getdatainformation’).rowscount;
but getdatainformation doesnt seems to be there.
i found one way, but i guess its some simpler way also.
var rows = $(“#jqxTreeGrid”).jqxTreeGrid(‘getRows’);
var noOfRows = 0;
var traverseTree = function(rows)
for (var i = 0; i < rows.length; i++)
noOfRows += 1;
noOfRows = traverseTree(rows);
This is the right way of getting the number of rows in a jqxTreeGrid.
You must be logged in to reply to this topic.