I've set up an ExtLib REST service as "xe:viewJsonService" and connected it to a domino view. Currently the view contains 63 entries. The documents behind those entries have read access restrictions.

The Json returned by the service is consumed by a Dojo Data Grid (taken from the ExtLib libraries). 

The page is accessed by a test user having read access to only one of the 64 entries. This user however sees a data grid containing a single data element, followed by 63 empty entries, like this:

[![enter image description here](https://i.stack.imgur.com/P56SA.jpg)](https://i.stack.imgur.com/P56SA.jpg)

Looking at the raw Json data I see that the service indeed is only returning a single entry, but it knows that there are 63 siblings:

```
[
  {
      "@entryid":"1-6C5763E4A122F1D3C1257EC700355386",
      "@unid":"6C5763E4A122F1D3C1257EC700355386",
      "@noteid":"3FD2E",
      "@position":"1",
      "@read":true,
      "@siblings":63,
      "@form":"fInvoice",
      "colIconStatus":"imgInvExported.gif",
      "colIconLock":"blank.gif",
      "invInvoiceDate":"2015-09-21T09:44:27Z",
      "invJobInvNumbers":"111\/5152\/52567\/ 001",
      "invSupplierNameShort":"My Test Company GmbH",
      "invAmount":121.5
  }
]

```

Technically speaking this is correct as the service has access to all 64 entries. Problem is that the data grid is making space for 64 entries instead of only one. 

Question is: how can I tell the data grid the correct amount of data to be displayed? Or do I need to manipulate the REST service instead?

EDIT: continuing my search for a possible solution in meanwhile found a few other related questions [this one](https://stackoverflow.com/questions/16339613/dojo-datagrid-8-5-3-up1-returning-blank-rows-based-on-readers-field) by Eric McCormick (including a very good approach by Stephan Wissel), or [this one](https://stackoverflow.com/questions/17798495/hide-blank-rows-in-dojo-data-grid) by Steve Zavocki. So my question would be a duplicate, really... (sorry for that)