SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.6]   Back  Forward

DataLudi.GridBase.descendantDataCount  property

创建在网格中的所有数据行树行的数量。 

包含因为被卷起而未被显示或折叠状态的组行树行的子孙行。 而且,将会排除组页眉或页脚等没有连接在数据组行的数据。 可以通过descendantRowCount,得知包含组页眉或页脚等的数量。 另外,可以通过rowCountdisplayRowCount以及fullDisplayRowCount,得知目前显示在网格画面上的行的数量。 

如果有列筛选器、行筛选器或隐藏状态的数据行,这个数量将会小于连接在网格的数据组行数。 

如果这个数量发生变更,就会触发onDescendantRowCountChanged事件。 

Getter
function descendantDataCount(): Integer
Setter
function setDescendantDataCount(value: Integer)
Code -1
    $('#descendantCount').click(function () {
        alert(grid.descendantDataCount());
    }
See Also
descendantRowCount
rowCount
displayRowCount
fullDisplayRowCount
onDescendantDataCountChanged
GridView.setHidden
DataSet.rowCount
Examples
行计数
树行计数
隐藏行