View Full Version : [2.0a1][CLOSED] Using ctrl key for multiple select in DataView
Hi,
I've noticed that sometimes the multi-select using the ctrl key doesn't work.
eg works here:
http://extjs.com/deploy/ext-2.0-alpha1/examples/view/data-view.html
but not here:
http://extjs.com/deploy/ext-2.0-alpha1/examples/organizer/organizer.html
mystix
5 Oct 2007, 8:30 AM
please post details as per 13985.
Hi,
Sorry - I did read that post and try to conform, but this bug is visible in the examples (see urls i included) so no need to post details of how to replicate.
I have found the bug in Firefox 2.0.0.7 and IE 7.0.5730.11 (both on XP sp2)
Regards,
R
jack.slocum
9 Oct 2007, 4:55 AM
This isn't a bug in DataView, it is bug when porting that example. The control key works fine in DataView.
any ideas how to fix the organizer example?
I understand this is a bug in the example, rather than Ext itself, but seeing as it is one of the "official" Ext 2.0 examples it would be nice if it worked properly.
hgcphoenix
19 Jun 2008, 12:52 AM
I think I may have found a fix to make the CTRL key to work on the drag and drop organizer example, I just commented out
if(!view.isSelected(target)) {
view.onClick(e);
}
That piece of code can be found in the ImageDragZone object i nthe getDragData method.
hgcphoenix
19 Jun 2008, 1:11 AM
There was a problem with the fix above. When you click and then drag on a view item it won't select the item you are dragging, therefore, a better fix is ..
if(e.ctrlKey == false) {
if(!view.isSelected(target)){
view.onClick(e);
}
}
where we detect whether the ctrl key is pressed.
travolta
9 Apr 2009, 9:17 AM
Thank you for this tips !!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.