Question: On my XPage I have a datasource defined which is a filtered view:

```
<xp:this.data>
        <xp:dominoView var="viewItems" viewName="myTodoList">
            <xp:this.categoryFilter><![CDATA[#{javascript:return sessionScope.get("userFilter");}]]></xp:this.categoryFilter>
        </xp:dominoView>
    </xp:this.data>

```

I want to display the data via a repeat control. But I want to display ALL the records in the data-set. How much I compute the xp:this.rows property?

```
<xp:repeat id="repeat1" value="#{viewItems}"
    var="obj" indexVar="idx">
    <xp:this.rows><![CDATA[#{javascript:getComponent("repeat1").getDataModel().getRowCount()}]]></xp:this.rows>

</xp:repeat>

```

Answer: 
You need to get the item count from your DominoView, not the rowCount from the component’s data model. 

You might be careful what you want to do here, a view can potentially be VERY large and user experience be bad. 

The extension lib has “infiniScroll” that might be more suitable to what user expect.
Have you tried?

```
<xp:this.rows><![CDATA[#{javascript:var vw:NotesView = database.getView("myTodoList");
return vw.getAllEntriesByKey(sessionScope.get("userFilter"),true).getCount().toFixed();}]]></xp:this.rows>

```