Bug Report T884023
Visible to All Users

TcxCheckComboBox - The ItemIndex parameter has an incorrect value in the OnClickCheck event handler if incremental filtering is in effect

created 5 years ago (modified 5 years ago)

Hello,

We used ItemIndex parameter of OnClickCheck event when we wanted to access selected item. After setting IncrementalFiltering = True, we noticed that ItemIndex property behaves like VisibleIndex, not behaving as we expected.

There is a property called CheckComboBox.SelectedItem, it seems to behave as we expect. However, there is no information about this property on documentation. Also missing is ItemIndex documentation, see attachment.

I believe ItemIndex should be fixed. Please check and advise. Thank you.

Delphi
procedure TForm3.ccbPropertiesClickCheck(Sender: TObject; ItemIndex: Integer; var AllowToggle: Boolean); begin memo1.Clear; Memo1.Lines.Add(ItemIndex.ToString); Memo1.Lines.Add(ccb.SelectedItem.ToString); end;
Show previous comments (1)

    Please check attached project:

    1. Click on checkcombobox.
    2. Type "3"
    3. Click on "3"
    4. Observe ItemIndex value on Memo

      As I stated in the subject, I need to get selected Item's ShortDescription and Description. Please advise how I can do that in OnClickCheck event when IncrementalFiltering = True

      DevExpress Support Team 5 years ago

        Thank you for the clarification.
        I will examine this issue and get back to you once we have any results or need additional information. Thank you for your patience.

        Answers approved by DevExpress Support

        created 5 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          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.