Results 1 to 2 of 2

Thread: Exception from spreadsheet selection model when removing last selected record

    You found a bug! We've classified it as EXTJS-26621 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member ragzovskii's Avatar
    Join Date
    Sep 2012
    Location
    Krasnoyarsk, Russia
    Posts
    242

    Default Exception from spreadsheet selection model when removing last selected record

    Hello.

    When I select whole last row and remove record from store selection model fires exception. Bug appeared in 6.5.2 and still present in nightlies.
    Reproducible in this fiddle:


    Also I should note it works on device with touchscreen and doesn't work on regular devices.

  2. #2
    Sencha Premium Member ragzovskii's Avatar
    Join Date
    Sep 2012
    Location
    Krasnoyarsk, Russia
    Posts
    242

    Default

    Possible solution:
    Code:
    Ext.define(null, {
                override: 'Ext.grid.selection.Rows',
                privates: {
                    setRangeStart: function (start) {
                        this.callParent(arguments);
                        this.rangeEnd = null;
                    },
                    getRange : function () {
                        if (this.rangeStart == null || this.rangeEnd == null) {
                            return [];
                        } else {
                            return this.callParent();
                        }
                    }
                }
            })

Similar Threads

  1. [FIXED] Spreadsheet selection model getSelection doesn't return selected records
    By ragzovskii in forum Ext JS 6.x Bugs
    Replies: 6
    Last Post: 16 Nov 2018, 1:16 PM
  2. Replies: 1
    Last Post: 19 Oct 2017, 6:47 AM
  3. Replies: 0
    Last Post: 19 Oct 2017, 2:13 AM
  4. Crash when removing all rows with spreadsheet model
    By mankz in forum Ext JS 6.x Bugs
    Replies: 0
    Last Post: 3 Jan 2017, 6:21 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
  •