SMART datagrid v.1 > Examples

[ grids ver.1.3.6]   Back  Forward

Tree Row Counts  Example
no-lite

You can check the number of Tree Rows displayed in the tree view by several property values. 

GridBase.rowCount is the number of all rows including the ones not displayed in the screen due to being scrolled and excluding the ones hidden due to being collapsed. Tree footer is also included in the number. If the number is changed, GridBase.onRowCountChanged event will be fired. 

displayRowCount is the number of the tree rows displayed in the current screen. GridBase.fullDisplayRowCount is the number of the rows displayed entirely. It can be the same or one less than displayRowCount. 

descendantRowCount is the number including the descendants of the tree row which is collapsed in rowCount. If the number is changed, onDescendantRowCountChanged event will be fired. 

descendantDataCount is the number of Tree Rows connected to the row of the data set. It is the number of excluding the tree row footer and including the descendants of the collapsed group row or tree row. If the number is changed, onDescendantDataCountChanged event will be fired. 

In the tree below, you can check the change state of each number by expanding or hiding the tree rows and adding or deleting the rows. 

Tree - 1
rows

The values transferred to the number event are displayed below. 

rowCount
displayRowCount
descendantRowCount
descendantDataCount

Get the property value of each number and display on the right side of the corresponding location in red. 


View Source JSP 

See Also
GridBase.rowCount
GridBase.displayRowCount
GridBase.fullDisplayRowCount
GridBase.onRowCountChanged
GridBase.onDisplayRowCountChanged
Examples
Grid Row Counts