MultipleSelectionListBox question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MultipleSelectionListBox question

Mikael Svane-2
I am using a MultipleSelectionListBox in a Dialog where the user should be
able to select a number of items from a list and, from a context menu, be
able to perform a number of operations on the selected items. However, as
soon as I right click on one of the selected items, the multiple selection
dissappears and only the item that I right clicked on is selected. How can
this be avoided?

Best regards,

Mikael Svane
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: MultipleSelectionListBox question

Ian Bartholomew-6
Mikael,

> I am using a MultipleSelectionListBox in a Dialog where the user should be
> able to select a number of items from a list and, from a context menu, be
> able to perform a number of operations on the selected items. However, as
> soon as I right click on one of the selected items, the multiple selection
> dissappears and only the item that I right clicked on is selected. How can
> this be avoided?

Try using a "ListPresenter.Multi-selection enhanced list view" resource
instead of the "ListPresenter.Multi-selection list box".  The former allows
you to have multiple selections and still use the context menu - see my
ChunkBrowser for a demo.

Regards
    Ian