Results 1 to 5 of 5

Thread: EXT 5.1.1 Spreadsheet selection model SHIFT select not working

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-18018 in 5.1.3.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Sutton, UK
    Posts
    49

    Default EXT 5.1.1 Spreadsheet selection model SHIFT select not working

    Recently upgraded to 5.1.1 explicitly for the spreadsheet selection model.

    Using shift select with only cell selection will select a range of cells. However, if I do a subsequent shift select the selection does not update and it appears the selectionchange event does not fire.

    Fiddle here https://fiddle.sencha.com/#fiddle/ns0

    If change the fiddle to use 5.1.0 then it works.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

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

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Sutton, UK
    Posts
    49

    Default

    Seems like the cause of issue is in the onNavigate function in Ext.grid.selection.SpreadsheetModel.

    In 5.1.0

    Code:
    if (!(me.cellSelect || me.columnSelect || me.rowSelect) || !navigateEvent.record || keyEvent.type === 'mousedown') {
                    return;
    }
    In 5.1.1
    Code:
    if(sel && sel.isCells && sel.getCount() > 1 && keyEvent.type === 'click') {
    return;
    }
    After an initial range selection (shift click) the sel.getCount() is always greater than 1.

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Sutton, UK
    Posts
    49

    Default

    As onNavigate is a private function I cannot simply do Ext.override on Ext.grid.selection.SpreadsheetModel, any ideas on the best way to revert the if statement back to the Ext. 5.1.0 version. I don't want to downgrade from 5.1.1 to 5.1.0 completely.

  5. #5
    Sencha Premium User
    Join Date
    Nov 2013
    Location
    Piacenza, Italy
    Posts
    219

    Default

    It seems related to EXTJS-16175 fixed in 5.1.1:
    https://www.sencha.com/forum/showthr...-you-use-mouse

Similar Threads

  1. [OPEN] Grid Shift Select Scroll, removes selections from selection model
    By rajandvij in forum Sencha GXT Bugs
    Replies: 8
    Last Post: 1 May 2015, 12:20 PM
  2. Spreadsheet Selection Model in Architect
    By [email protected] in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 10 Mar 2015, 3:25 PM
  3. Replies: 5
    Last Post: 12 Feb 2015, 1:47 AM
  4. [FIXED] Spreadsheet selection model
    By Zdeno in forum Ext 5: Bugs
    Replies: 2
    Last Post: 9 Dec 2014, 9:48 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
  •