Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-10393 in 4.2.3.
  1. #1
    Ext Premium Member Jan (HL)'s Avatar
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    111
    Vote Rating
    9
    Jan (HL) will become famous soon enough

      0  

    Default Multiselection in Grids (with Shift) won't work if first selection isn't made by user

    Multiselection in Grids (with Shift) won't work if first selection isn't made by user


    REQUIRED INFORMATION




    Ext version tested:
    • Ext 4.2.1.883
    Browser versions tested against:
    • Chrome 27
    • Firefox 21
    DOCTYPE tested against:
    • HTML5
    Description:
    • If a selection in a grid is not made by user explicitly (by clicking), the selection cannot be used for a multi selection. Only the next selection and the over-next selections will be used which looks buggy for an user who isn't aware of self- and automatic selections.
    • The demo uses a grid plugin called "PreserveSelection" which stores itself the current selection providing seamless selections even after store reloads.
    Steps to reproduce the problem:
    • Load the demo (see at the bottom).
    • The first row is auto-selected by the app.
    • Without any click, try to Shift-Click the 2nd row.
    The result that was expected:
    • Both rows (1 & 2) should be selected.
    The result that occurs instead:
    • The 2nd row is selected, but not the first one.
    Test Case:






    HELPFUL INFORMATION


    Demo/Testcase at GitHub with a grid.
    1. git clone https://github.com/knalli/extjs4-demos
    2. cd extjs4-demos
    3. Extract/Copy an Ext JS 4.2.1.883 at lib/ext-4.2.1.883
    4. node server
    5. open in browser http://localhost:8125/extjs4.2.1.883...ion/index.html
    Debugging already done:
    • ExtJS Internals: The RowModel does not fire events when the public API "select" was called. Only if "processSelection"(implicitly) after a mouse click was called, the internal property "selectionStart" will be set.
    Workaround:Possible fix:
    • not provided
    Operating System:
    • 10.8
    *EDIT BY SLEMMON
    Tests ok in 4.1.3. Issue observed in 4.2.0 and 4.2.1.
    Inline test case:
    Code:
    Ext.create('Ext.data.Store', {
        storeId:'simpsonsStore',
        fields:['name', 'email', 'phone'],
        data:{'items':[
            { 'name': 'Lisa',  "email":"lisa@simpsons.com",  "phone":"555-111-1224"  },
            { 'name': 'Bart',  "email":"bart@simpsons.com",  "phone":"555-222-1234" },
            { 'name': 'Homer', "email":"home@simpsons.com",  "phone":"555-222-1244"  },
            { 'name': 'Marge', "email":"marge@simpsons.com", "phone":"555-222-1254"  }
        ]},
        proxy: {
            type: 'memory',
            reader: {
                type: 'json',
                root: 'items'
            }
        }
    });
    
    
    Ext.create('Ext.grid.Panel', {
        title: 'Simpsons',
        store: Ext.data.StoreManager.lookup('simpsonsStore'),
        columns: [
            { text: 'Name',  dataIndex: 'name' },
            { text: 'Email', dataIndex: 'email', flex: 1 },
            { text: 'Phone', dataIndex: 'phone' }
        ],
        height: 200,
        width: 400,
        renderTo: Ext.getBody(),
        selModel: {
            selType: 'rowmodel',
            mode: 'MULTI'
        },
        listeners: {
            viewready: function (view) {
                view.getSelectionModel().select(0);
            }
        }
    });
    Last edited by slemmon; 26 Jun 2013 at 9:03 AM. Reason: additional test notes

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,770
    Vote Rating
    165
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


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

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar