1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default Paging toolbar next/previous page broken in latest build?

    Paging toolbar next/previous page broken in latest build?


    In the latest SVN build, the paging toolbar's next/previous buttons of the PagedGridView seems to be broken.

    When clicking on next page, the grid updates with the next page's rows, but the page number remains at 1. When you click on the next page a second time, the page number advances now to page 2, and the grid remains displaying the correct page 2 rows, i.e. the page number advances for every two clicks.

    Rolled back to an earlier build and it confirms that this bug was introduced sometime quite recently.

    Not sure if anyone else has encountered this problem - will delve deeper into the possible causes later.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,506
    Vote Rating
    54
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    What DataModel are you using? The code in PagedGtridView is the same.

    The DataModel has to

    Code:
            this.fireLoadEvent();
    at the end of its loadData method.

    This calls

    Code:
        fireLoadEvent: function(){
            this.fireEvent('load', this.loadedPage, this.getTotalPages());
        },
    In LoadableDataModel, and the PagedGridView subscribes to that in plugDataModel. Check that that event is being fired in your DataModel.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default


    Okay, I believe I've found the bug...

    In the JSON DataModel (which I'm using), noticed that the later SVN versions actually do a fireLoadEvent() first before executing the callback function.

    XML DataModel still retains the same sequence, i.e. callback then fireLoadEvent() - thus I believe should not face the same problem.

    Not sure if there was any reason for the swap in the JSON DataModel - or possibly just a cut-n-paste type of bug...

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,506
    Vote Rating
    54
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Probably best PM Jack when he gets back.

  5. #5
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    This is fixed in SVN btw.

  6. #6
    Sencha Developer
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    482
    Vote Rating
    1
    Wolfgang is on a distinguished road

      0  

    Default


    Hello,

    is there a patch/workaround for "yui-ext 0.33 RC3" available?

    Regards

    Wolfgang

  7. #7
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default


    Actually, it will be best if you grab the latest and greatest from SVN...

    Meanwhile, you can workaround the problem by simply modifying the yui-ext js to execute the callback then fireLoadEvent().

  8. #8
    Sencha Developer
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    482
    Vote Rating
    1
    Wolfgang is on a distinguished road

      0  

    Default


    Thank you

    Regards

    Wolfgang

  9. #9
    Sencha Developer
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    482
    Vote Rating
    1
    Wolfgang is on a distinguished road

      0  

    Default


    Hello,

    Just upgraded to 0.33. works again.

    Thank you

    Wolfgang

Similar Threads

  1. Combo bug on latest build
    By fsuguinness in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 22 Mar 2007, 10:24 AM
  2. paging: 2nd page not working.
    By HarryC in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 15 Mar 2007, 4:04 PM
  3. Paging Grid Problem on page change
    By jon.whitcraft in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 7 Mar 2007, 12:07 PM
  4. Paging Grid issue: shows all data in the first page
    By Greeens in forum Ext 1.x: Help & Discussion
    Replies: 8
    Last Post: 27 Feb 2007, 8:29 AM

Thread Participants: 3