We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

ListBoxSelectionMode, MultiExtended not fully identical to ListBox behavior

In a ListBox that is set to MultiExtended, one can drag select, then press control, then left-click-drag a different rang to add to the existing selection.

With the Grid control, the first drag-select duplicates the behavior of a ListBox, but when you press and hold the control key, then drag some more, only the first item in the drag is selcted.

Example:
You have a ListBox and Grid with 14 items.
1. Click on item/row 2, holding left mouse button down, drag to item/row 6.
2. Release left mouse button.
3. Press and hold control key.
4. Left-click on item/row 9, holding left mouse button down, drag to item/row 12.

At the end of step 1, both ListBox and Grid show items/rows 2 through 6 selected.

At the end of step 4, a ListBox will show items/rows 2 through 6 and 9 through 12 selected.
At the end of step 4, the Grid will show items/rows 2 through 6 selected and item/row 9 selected.

Desired condition: at the end of step 4, both the Grid and ListBox should display the same - items/rows 2 through 6 and 9 through 12 selected.

Is there a way to exactly duplicate the behavior of the ListBox? Or do you need some sample code?


1 Reply

DH Dhamodharan Syncfusion Team November 22, 2011 09:37 AM UTC


Hi Peter,

Thank you for using Syncfusion Product.

We have updated the details for your reported query in that incident 87670. Please refer the incident for better follow up

Let me know if you have any concern.

Regards,
Dhamodharan B



Loader.
Live Chat Icon For mobile
Up arrow icon