1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6
    Vote Rating
    0
    gameboy87 is on a distinguished road

      0  

    Default Unanswered: Why the pagingToolbar's Next Buttons is Disabled ?

    Unanswered: Why the pagingToolbar's Next Buttons is Disabled ?


    I set pageSize as 10 and it loads all data into the grid. But, why the Next Button and Previous Button is Disabled ?

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,092
    Answers
    112
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    are you telling the total number of records to your store? In the proxy's reader, there is a config totalProperty.

    Code:
    reader: { type: 'json', root: 'data', totalProperty: 'total' }
    In your response, you should have something like:

    Code:
    {total: 30, data: [{record1}, {record2}, ...]}
    From this, the store will calculate the number of pages and also enable/disable the next button.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6
    Vote Rating
    0
    gameboy87 is on a distinguished road

      0  

    Default


    I do not know that was the problem. I queried the docs & rectified myself.

Thread Participants: 1

Tags for this Thread