Results 1 to 3 of 3

Thread: Empty virtual store throws exception in list

    You found a bug! We've classified it as EXTJS-27584 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,257

    Default Empty virtual store throws exception in list

    Test case:

    https://fiddle.sencha.com/#view/editor&fiddle/2kue

    When the list is shown, it attempts to call goto() on the range passing the required set of rows. Because totalCount is 0, any page becomes "invalid" and fails.

    Suggested fix would be to ignore any goto operation where we have an explicit 0 (we know it's got nothing), as opposed to null (unknown yet).

    Code:
    Ext.define(null, {
        override: 'Ext.data.virtual.Range',
    
        privates: {
            doGoto: function() {
                if (this.store.totalCount === 0) {
                    return;
                }
                this.callParent();
            }
        }
    })
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  2. #2
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    567

    Default

    Hello Evan,

    Thank you for bringing this to our attention, we will go ahead and add this to our bug tracker.

    Regards,
    Kumar
    Sencha Support.

  3. #3
    Sencha Staff
    Join Date
    Sep 2017
    Posts
    126

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 2
    Last Post: 23 Oct 2018, 7:57 AM
  2. Replies: 8
    Last Post: 2 Jan 2013, 10:43 AM
  3. Replies: 2
    Last Post: 11 Feb 2009, 1:58 PM
  4. [FIXED] Adding empty list to ListStore throws JS exception
    By Kutu in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 29 Jan 2009, 10:02 AM

Posting Permissions

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