PDA

View Full Version : [2.0a1][CLOSED] Using ctrl key for multiple select in DataView



robw
5 Oct 2007, 8:13 AM
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.

robw
9 Oct 2007, 1:54 AM
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.

robw
11 Oct 2007, 8:07 AM
any ideas how to fix the organizer example?

robw
31 Oct 2007, 6:48 AM
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 !!