Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6
    Vote Rating
    0
      0  

    Default 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,099
    Answers
    113
    Vote Rating
    100
      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
      0  

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •