Select to view content in your preferred language

Feature table is blank when results match pageSize

376
4
02-26-2025 07:56 AM
dstoick
New Contributor
@ArcGIS/core": "4.31.6"

When the number of items in the layer is the same as the pageSize the featureTable displays blank.

    this.featureTable = new FeatureTable({
      view: this.view as MapView,
      layer: layer,
      visibleElements: { selectionColumn: true },
      container: 'tableDiv',
      tableTemplate: {
        columnTemplates: fieldColumnTemplates,
      },
      pageSize: 7,
      paginationEnabled: true,
    });



dstoick_0-1740585233142.png


Here is the same data results if PageSize is changed to pageSize: 6,

dstoick_1-1740585282060.png

 

0 Kudos
4 Replies
Noah-Sager
Esri Regular Contributor

Hi @dstoick, can you test again with 4.32? We released a new version recently.

0 Kudos
JoseLuisLopezMartin
New Contributor

Hi @Noah-Sager , I´m using 4.32 and I ´ve the same problem.

0 Kudos
Delores_Muller
Emerging Contributor

Any suggested workarounds for this pagination issue that also results in a blank set of records on the last page?

I have tried to set the property effectiveSize as a workaround without success. It mentions how the last page may be handled differently.

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#effecti...

Right now either increasing or decreasing number of records by 1 to not be an even multiple of number of records / pageSize is the only working solution, but prefer to use a rounded number like 1000 total records and pageSize of 20 resulting in 50 pages.

0 Kudos
Delores_Muller
Emerging Contributor

Ah effectiveSize is readOnly so not useful in this context

0 Kudos