-
29 Jun 2011 10:15 AM #1
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>
-
30 Jun 2011 1:18 AM #2
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.Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
25 Aug 2011 12:21 PM #3
Was this issue resolved in one of the 4.0.x updates?
Thanks,
Jack
-
25 Aug 2011 5:07 PM #4
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
26 Aug 2011 7:21 AM #5
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
-
5 Mar 2012 2:18 AM #6
and select multi cell still not working.
This duplicates another bug already reported in our system:
EXTJSIV-3771


Reply With Quote