Count of rows under a read-only grid

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?

number of rows

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Lead Developer

    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
          )
        }
      )
    )

Reply
  • +1
    Certified Lead Developer

    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
          )
        }
      )
    )

Children