Ticket S134210
Visible to All Users

CheckedComboBoxEdit - add AllowMultiSelect property

created 15 years ago

I want to be able to select blocks of items from the drop-down check list in a way similar to a typical list box (click one item, then hold the shift key and click another to select all items between the two clicked items).

Comments (3)
DevExpress Support Team 15 years ago

    Hi Andy,
    We've accepted your suggestion.
    At the moment, you can access an inner list box using the following code:

    C#
    private void checkedComboBoxEdit1_Properties_Popup(object sender, EventArgs e) { CheckedListBoxControl innerListBox = ((IPopupControl)sender).PopupWindow.Controls[2].Controls[0] as CheckedListBoxControl; }

    Then, you can change the innerListBox's SelectionMode as your needs dictate.
    Thanks
    Dimitros

      That's a definitely wacky workaround. From a UI perspective, I have to highlight the first item to be checked, hold the shift, click to highlight the last item to be checked, then click its checkbox and all the items are checked (or cleared if I use it to go the other way). Looking forward to something better.
      Also, count me as another one who would like the ability to have the list jump to the right spot when I type a portion of the entry. This is another suggestion that was accepted earlier. Thanks!

      DevExpress Support Team 15 years ago

        Hi Andrew,
        Thank you for the clarification.
        I believe I understand the behavior you want to implement. However, on having discussed this problem with our developers, we decided not to implement this behavior in our CheckedListBoxControl and CheckedComboBoxEdit controls. However, you can easily implement the required logic manually using a piece of code. Simply handle the SelectedIndexChanged event and check the selected items.
        I've created a small sample project, illustrating this solution. Hopefully, you'll be able to adapt it to your needs.
        In any case, if you encounter any problem, please let us know. We'll do our best to help you.
        Thanks
        Dimitros

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.