WebDataGrid paging display ?

I’m seeing a display issue with the pagination in WebDataGrid showing 1 to ? of 13 instead of 1 to 13 of 13 [Page size: 20]. Same behaviour with longer list: 1 to ? of 50 [Page size: 20]. TMS Webcore version 2.9.8

Capture d'écran 2026-01-16 020454

Is this with default properties or did you change any particular settings in the grid?

Hi @brunofierens

Here is the grid properties from dfm

object WebDataGrid1: TWebDataGrid
  Left = 0
  Top = 0
  Width = 1200
  Height = 700
  HeightStyle = ssPercent
  WidthStyle = ssPercent
  Banding.Enabled = False
  Banding.OddRowsColor = 16777215
  Banding.EvenRowsColor = 16777215
  Pagination = True
  PaginationAutoPageSize = False
  CacheBlockSize = 20
  MaxBlocksInCache = 0
  TabOrder = 0
  RowMultiSelectWithClick = False
  EnableClickSelection = True
  EditType = retFullRow
  BidiMode = bdLeftToRight
  SuppressMoveWhenColumnDragging = False
  Align = alClient
  OnGetRowStyle = WebDataGrid1GetRowStyle
  OnGetRowClass = WebDataGrid1GetRowClass
  MultilevelHeaders = <>
  ColumnDefs = <
    item
      Field = 'DocumentNumber'
      CellDataType = cdtText
      HeaderName = 'Num'#233'ro'
      Filter = True
      ValueFormatter = WebDataGrid1Column_MontantValueFormatter
      CheckboxSelection = False
      SelectOptions = <>
    end
    item
      Field = 'DocumentDate'
      CellDataType = cdtText
      HeaderName = 'Date'
      Filter = True
      ValueFormatter = WebDataGrid1Column_DocumentDateValueFormatter
      CheckboxSelection = False
      Width = 120
      SelectOptions = <>
    end
    item
      Field = 'TypeDoc'
      CellDataType = cdtText
      HeaderName = 'Type'
      Filter = True
      CheckboxSelection = False
      Width = 160
      SelectOptions = <>
    end
    item
      Field = 'Name'
      CellDataType = cdtText
      HeaderName = 'Correspondant'
      Filter = True
      CheckboxSelection = False
      SelectOptions = <>
    end
    item
      Field = 'PeppolID'
      CellDataType = cdtText
      HeaderName = 'Peppol ID'
      Filter = True
      CheckboxSelection = False
      SelectOptions = <>
    end
    item
      Field = 'Montant'
      CellDataType = cdtNumber
      HeaderName = 'Montant'
      Filter = True
      EditModeType = cetNumber
      ValueFormatter = WebDataGrid1Column_MontantValueFormatter
      CheckboxSelection = False
      SelectOptions = <>
      OnGetCellStyle = WebDataGrid1Column_MontantGetCellStyle
    end
    item
      Field = 'PdfAvailable'
      CellDataType = cdtObject
      HeaderName = '   '
      ViewModeType = crtCustom
      CheckboxSelection = False
      Sortable = False
      Width = 80
      SelectOptions = <>
      OnCustomRender = WebDataGrid1Column_PdfAvailableCustomRender
      OnGetCellStyle = WebDataGrid1Column_PdfAvailableGetCellStyle
    end
    item
      Field = '__action'
      CellDataType = cdtObject
      HeaderName = '  '
      ViewModeType = crtCustom
      CheckboxSelection = False
      Sortable = False
      Width = 30
      SelectOptions = <>
      OnCustomRender = WebDataGrid1Column___actionCustomRender
      OnGetCellStyle = WebDataGrid1Column_PdfAvailableGetCellStyle
    end
    item
      Field = 'MessageId'
      CellDataType = cdtText
      CheckboxSelection = False
      Sortable = False
      Visible = False
      SelectOptions = <>
    end
    item
      Field = 'IsRead'
      CellDataType = cdtBoolean
      HeaderName = 'Lu'
      CheckboxSelection = False
      Visible = False
      SelectOptions = <>
    end
    item
      Field = 'IsPdfDownloaded'
      CellDataType = cdtBoolean
      HeaderName = 'Vu'
      CheckboxSelection = False
      Visible = False
      SelectOptions = <>
    end>
  ServerDataAdapter = DGCustomDataAdapter1
  OnCellClickedEvent = WebDataGrid1CellClickedEvent
end

Rows are loaded via DGCustomDataAdapter1GetRows(Params: TJSGetRowsParams) and all rows count using Params.SuccessCallback(Rows, LastRow);

So far, we could not reproduce such issue here so far.
Does this problem remains when you decrease page size to 10 for example (so that 2 pages would be needed)?