Remote Pagination Plugin
  1. Remote Pagination Plugin
  2. GPREMOTEPAGINATION-7

the 'offset' parameter from 'pageSize' has a negative value when the 'params' parameter

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Environment:
      ubuntu, windows

      Description

      Hi Amit Jain,

      First I would like to thank you for all the great work on the plugin.

      I have found some anomalous behavior with the pagination.

      For the following code:
      <g:render template="/user/list" model="[showButtons:true]"/>

      And in _list.gsp

      <util:remotePaginate controller="user" action="list" total="$

      {userInstanceTotal}

      " update="user-list" pageSizes="[5, 10, 20, 50, 100]" params="[profile:showButtons]"/>

      In version 0.2.5 when you selected one of the "pageSizes" options, nothing happened. ( without the field "params" it worked perfectly)

      In version 0.2.6 when one of the "pageSizes" options is selected it changes the max field, but the "Next" button appears. I have seen that the field "offset" that is in the javascript has a negative value and it gets incremented by the specified amount but in negative (-10, -60, -110) when one of the "pageSize" values was selected.

      Many thanks

        Activity

        Hide
        Amit Jain added a comment -

        Thanks for reporting the bug. Apologies for delay in fixing. This bug has been fixed in the version 0.2.7.

        Show
        Amit Jain added a comment - Thanks for reporting the bug. Apologies for delay in fixing. This bug has been fixed in the version 0.2.7.

          People

          • Assignee:
            Amit Jain
            Reporter:
            jagiro
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: