PDA

View Full Version : Multi selections in List Controls without holding the CTRL Key possible?


Oscar07
02-27-2008, 07:11 PM
Hi,

when you want to make more as one selection in a List-Control, you have to Click and hold the CTRL-Key.

Is there a way, to make multiple selections, but without to have clicking the CTRL Key? Just by clicking with the left Mouse Button?

Jim Freer
02-27-2008, 10:26 PM
How about using a List component with a CheckBox as the ItemRenderer? However, this isn't a multi-selection. You would have to maintain and extract the select state from the data provider. Another thing that bothers me, but doesn't seem to bother others is that a simple CheckBox ItemRenderer doesn't work well with the keyboard. I have a solution that I'm working on that I plan to publish but I'm not ready at this point. There are plenty of examples to be found but I haven't found any that pay attention to the keyboard.

Jim Freer
http://freerpad.blogspot.com/

Oscar07
02-28-2008, 03:27 PM
Thanks, good idea :)