ICEfaces
  1. ICEfaces
  2. ICE-8089

ace:dataTable - hide paginator links/buttons when records are lower than the rows per page value

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: EE-3.0.0.GA
    • Fix Version/s: 3.2
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      Use case: An ace:dataTable is loaded with 15 records, the rows are set to show 10 and there is the option to show 10 or 25 records through the RowsPerPageDropdown. Initially this shows two pages for the paginator. If the user shows 25 records via the drop down, the paginator will show all records for one page.

      Feature Request: When there are less records displayed compared to the rows per page value, hide the paginator buttons/links.

        Activity

        Hide
        Arran Mccullough added a comment -

        This behavior can be seen when filtering the data. Once the filtered data is shown the paginator is hidden.

        Show
        Arran Mccullough added a comment - This behavior can be seen when filtering the data. Once the filtered data is shown the paginator is hidden.
        Hide
        Nils Lundquist added a comment - - edited

        This can already be done by the client with existing app level logic- determining if the row count of the table is less than a single page, to toggle a different 'paginatorTemplate' definition for the table, something like "

        {RowsPerPageDropdown}

        ", which wouldn't show any page links, buttons, etc, just the dropdown.
        Unlike the filtering case mentioned, the RowsPerPageDropdown is part of the paginator, so we can't just skip rendering of the paginator. The paginator needs to be configured via the paginatorTemplate to be more minimal.

        Show
        Nils Lundquist added a comment - - edited This can already be done by the client with existing app level logic- determining if the row count of the table is less than a single page, to toggle a different 'paginatorTemplate' definition for the table, something like " {RowsPerPageDropdown} ", which wouldn't show any page links, buttons, etc, just the dropdown. Unlike the filtering case mentioned, the RowsPerPageDropdown is part of the paginator, so we can't just skip rendering of the paginator. The paginator needs to be configured via the paginatorTemplate to be more minimal.
        Hide
        Nils Lundquist added a comment - - edited

        Closing pending requirement of technique example.

        Show
        Nils Lundquist added a comment - - edited Closing pending requirement of technique example.

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: