extjssencha-touch

Count of visible rows in Ext.dataview.NestedList


how to find the count of visible rows in a Ext.dataview.NestedList ?

i tried to do so:

this.getItems().length 
and
this.getList(this.getLastNode()).getViewItems().length

does not work :(


Solution

  • Try this.getActiveItem().getItemCount().

    Nested list is a card container so this.getItems() would return the items of the container instead of the items of the dataview list.