This duplicates another bug already reported in our system: EXTJS-3771
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2011
    Location
    St. Louis
    Posts
    206
    Vote Rating
    8
    jimmylu98 will become famous soon enough

      0  

    Default Ext4: grid multiSelect cannot hold selections when right click mouse

    Ext4: grid multiSelect cannot hold selections when right click mouse


    REQUIRED INFORMATION


    Ext version tested:
    • 4.0.x

    Browser versions tested against:
    • All

    Description:
    • I got multiSelect work on grid with Ext4, however, when right click mouse, the multi-selections is become single selection - only last one is still selected. Is this a bug?

    Steps to reproduce the problem:
    • Select multiple items in a grid
    • Right click on one of the selected items

    The result that was expected:
    • All items stay selected

    The result that occurs instead:
    • The item we're right clicking gets selected

    Test Case:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
    <html> 
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
        <title>Stateful Array Grid Example test </title> 
        <link rel="stylesheet" type="text/css" href="/ext/resources/css/ext-all.css" /> 
        <script type="text/javascript" src="/ext/ext-all-debug.js"></script> 
    
        <script type="text/javascript"> 
    
    
    
    Ext.onReady(function() { 
        Ext.QuickTips.init(); 
    
        // sample static data for the store 
        var myData = [ 
            ['3m Co',                               71.72, 0.02,  0.03,  '9/1 12:00am'], 
            ['Alcoa Inc',                           29.01, 0.42,  1.47,  '9/1 12:00am'], 
            ['Altria Group Inc',                    83.81, 0.28,  0.34,  '9/1 12:00am'], 
            ['American Express Company',            52.55, 0.01,  0.02,  '9/1 12:00am'], 
            ['American International Group, Inc.',  64.13, 0.31,  0.49,  '9/1 12:00am'], 
            ['Wal-Mart Stores, Inc.',               45.45, 0.73,  1.63,  '9/1 12:00am'] 
        ]; 
    
        // create the data store 
        var store = Ext.create('Ext.data.ArrayStore', { 
            fields: [ 
               {name: 'company'}, 
               {name: 'price',      type: 'float'}, 
               {name: 'change',     type: 'float'}, 
               {name: 'pctChange',  type: 'float'}, 
               {name: 'lastChange', type: 'date', dateFormat: 'n/j h:ia'} 
            ], 
            data: myData 
        }); 
    
        // create the Grid 
        var grid = Ext.create('Ext.grid.Panel', { 
        layout: 'fit', 
            store: store, 
            stateful: true, 
            stateId: 'stateGrid', 
        multiSelect: true,      
            columns: [ 
                { 
                    text     : 'Company', 
                    flex     : 1, 
                    sortable : false, 
                    dataIndex: 'company' 
                }, 
                { 
                    text     : 'Price', 
                    width    : 75, 
                    sortable : true, 
                    dataIndex: 'price' 
                }, 
                { 
                    text     : 'Change', 
                    width    : 75, 
                    sortable : true, 
                    dataIndex: 'change' 
                } 
            ], 
            height: 350, 
            width: 600, 
            title: 'Array Grid', 
            renderTo: 'grid-example', 
            viewConfig: { 
                stripeRows: true 
            //singleSelect: true, 
            //multiSelect: true          
            } 
        }); 
    }); 
    
    
       </script> 
    
    </head> 
    <body> 
        <div id="grid-example"></div> 
    </body> 
    </html>

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,131
    Vote Rating
    321
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I have tried to stop contextmenu event and although I could stop it the the records still got deselected.

    I think it's a bug, moving this thread to bugs.

  3. #3
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    9
    Vote Rating
    0
    jkennedy is on a distinguished road

      0  

    Default


    Was this issue resolved in one of the 4.0.x updates?

    Thanks,
    Jack

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,102
    Vote Rating
    500
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #5
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    9
    Vote Rating
    0
    jkennedy is on a distinguished road

      0  

    Default


    thanks, I see that thread seems to end with someone asking if there are any work arounds on Aug 15th, I didn't see any responses.

    Can you tell me if this issue is planned for a specific release yet.

    Sorry if that information is already available at some other location or system.

    Thanks,
    Jack

  6. #6
    Sencha User
    Join Date
    Mar 2012
    Location
    Ho Chi Minh City, Vietnam
    Posts
    9
    Vote Rating
    1
    complex14 is on a distinguished road

      0  

    Default


    and select multi cell still not working.

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