Results 1 to 3 of 3

Thread: TotalCount wrong in store

  1. #1
    Sencha User
    Join Date
    Feb 2017
    Posts
    2

    Default TotalCount wrong in store

    I have my code on a private network, so I can't really cross post it here, so I'll describe the situation and perhaps someone has an idea of where to look. I'm still new to Ext JS, and maybe I just don't know the right words to to a google search...

    I have a TabPanel, each 'card' uses the same Grid & Store. The first tab works fine -- it holds my data (22 records). I can page through it just fine, the counts are correct. I can open up a new tab to view another user's data (from the same DB table, so it is the same Grid and Store types, just with an extraParams to pass along the other user's info). The pagination for the second tab doesn't work right (as well as the "Displaying 1 - 20 of 22" message). The second tab should have 42 records available (3 pages), but it will only let me scroll through 2 pages (the count for the first tab). The "Displaying" info is also wrong -- it lists the 22 records for the first tab.

    I've checked in FireBug, and it is creating a new Grid and Store for each tab. The second Store has the "extraParams" filter, so it should be pulling a different set of records.

    Let me know if there's anything that I need to clarify. Or if there's a document somewhere that I could look over to get a better idea of how to do this (I inherited the problem, so I'm trying to learn the code *and* figure out this problem). Any help would be appreciated.

    Thanks!

  2. #2
    Sencha User
    Join Date
    Feb 2017
    Posts
    2

    Default

    Running ExtJS 5.1.1, if that matters.

  3. #3
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    Hi--


    Hard to tell without a test-case. Do you have (or can you put together) a Fiddle demonstrating your scenario so I can take a look?


    Thanks!
    Bryan

Similar Threads

  1. Replies: 1
    Last Post: 6 Feb 2015, 9:28 AM
  2. [CLOSED] HasMany Association store not keeping totalCount
    By ypandey in forum Ext:Bugs
    Replies: 6
    Last Post: 25 May 2014, 6:15 AM
  3. Adding record to store does not update TotalCount
    By Spenna in forum Ext 3.x: Help & Discussion
    Replies: 12
    Last Post: 29 Jul 2011, 4:33 AM
  4. Replies: 2
    Last Post: 27 May 2011, 1:53 AM
  5. [Solved]Problem w. Store count vs totalCount
    By rforbes in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 10 Dec 2007, 2:03 PM

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
  •