Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to change the DataSource page size

    Using SmartGwt 3.1p-2012-11-23, it seems that the first fetch performed by a ListGrid/DataSource combination retrieves records 0-75 (startRow/endRow).

    Is there a way to change the number of records from 75 to something else?

    #2
    ListGrid.setDataPageSize(int dataPageSize)
    MichalG

    Comment


      #3
      Thank you - that does work as I would expect.

      While testing this, I logged ListGrid.getDataPageSize () and got a NPE.

      The reason is that this:
      Code:
          public int ListGrid.getDataPageSize() {
              return getAttributeAsInt("dataPageSize");
          }
      calls this:
      Code:
        Integer BaseWidget.getAttributeAsInt(String property);
      It seems to me that ListGrid.getAttributeAsInt () should return Integer and not int.

      Using SmartGwt 3.1p-2012-11-23.
      Last edited by shortpasta; 19 Apr 2013, 09:38.

      Comment

      Working...
      X