Skip to main content
saahilm0002
May 26, 2022
Solved

Count of rows under a read-only grid

  • May 26, 2022
  • 2 replies
  • 0 views

Hi all,

I have a read only grid with pagesize as 20. I could see the number of rows populating below the grid is not consistent. It appears sometimes and sometimes it doesn't. I have attached a screenshot for reference, you can see in the above grid I am getting 20 rows but in the below one it's not there. What could be the reason?

Best answer by mikes0011

There's a built-in cutoff.  I don't remember what the exact number is, it's something right around 5.  AFAIK there is no design-side control over this behavior, but it's very predictable once you know what it is.

ETA: yes, the boundary is between 4 and 5.

a!localVariables(
  local!rows: 5,
  local!data: a!forEach(
    enumerate(local!rows),
    {
      id: fv!index
    }
  ),
  
  a!gridField(
    data: local!data,
    columns: {
      a!gridColumn(
        label: "Row",
        value: fv!row.id
      )
    }
  )
)

2 replies

mikes0011
mikes0011Answer
Brainy
May 26, 2022

There's a built-in cutoff.  I don't remember what the exact number is, it's something right around 5.  AFAIK there is no design-side control over this behavior, but it's very predictable once you know what it is.

ETA: yes, the boundary is between 4 and 5.

a!localVariables(
  local!rows: 5,
  local!data: a!forEach(
    enumerate(local!rows),
    {
      id: fv!index
    }
  ),
  
  a!gridField(
    data: local!data,
    columns: {
      a!gridColumn(
        label: "Row",
        value: fv!row.id
      )
    }
  )
)

The Expression Guru
saahilm0002
May 27, 2022

Thank you Mike for clearing this [emoticon:c4563cd7d5574777a71c318021cbbcc8]