SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.6]   Back  Forward

DataLudi.GridBase.descendantRowCount  property

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

包含因为被卷起而未被显示或折叠状态的组行树行的子孙行。 而且,也会包含组页眉或页脚。 可以通过descendantDataCount,得知排除如组页眉或页脚等没有连接在数据组行的网格行的数量, 并且可以通过rowCount,得知排除虽然包含组页眉或页脚等,但因为父行被卷起而隐藏的行的数量。 另外,可以通过displayRowCountfullDisplayRowCount,得知目前显示在网格画面上的行数。 

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

Getter
function descendantRowCount(): Integer
Setter
function setDescendantRowCount(value: Integer)
Code -1
    $('#descendantRowCount').click(function () {
        alert(grid.descendantRowCount());
    }
See Also
descendantDataCount
rowCount
displayRowCount
fullDisplayRowCount
onDescendantRowCountChanged
RowGroup.createFooterCallback
Examples
行计数
树行计数