Bug Report T927548
Visible to All Users

cxLookupComboBox - The editor incorrectly highlights non-ASCII characters in its edit box when an incremental filter is active if the Properties.IncrementalFiltering property is True and the Properties.DropDownListStyle property is lsFixedList

created 5 years ago

Hi,

I use TcxLookupComboBox with option: IncrementalFilteringOptions = [ifoUseContainsOperator]
My dataset contain words in any case. First word in uppercase. In example I use:
WINDOW
Winter
Winner

When press "i", I view all words. Then I press "n" and selection set to "WI", it's not correctly search and selection.
Can you help me with this problem.

Thanks for any help.

Comments (2)
DevExpress Support Team 5 years ago

    Hello,

    I tried to replicate the issue with the latest version of our controls (v20.1.4), but failed:

    1. You example contains four Items (not three) in the LookupComboBox;
    2. <<When press "i", I view all words.>>
      When I press "i", I see only 3 of 4 Items in the dropdown window ("WINDOW", "Winter" and "Winner");
    3. <<Then I press "n" and selection set to "WI", it's not correctly search and selection.>>
      Then I press the "n" key and see that "IN" characters are selected in the editor and the "WINDOWS" Item is selected in the dropdown window.

    I've attached a video that demonstrates my actions and the behavior I see. Please take a look at it and try to replicate the issue on your side with v20.1.4.
    We will wait for your response with results.

    dxVideo

      Hello,

      I install new version DevExpress VCL 20.1.4 on my computer, problem is solved.
      Because I use 19.1.2 version, I find solution for my problem - in cxTextEdit.pas in

      Delphi
      function TcxCustomTextEdit.PopulateFromList(var AFindText: string): Boolean;

      I replace string

      Delphi
      SelStart := Pos(AFindSubstr, AFindText) - 1;

      to

      Delphi
      SelStart := Pos(AnsiUpperCase(AFindSubstr), AnsiUpperCase(AFindText)) - 1;

      In version 20.1.4 you use UpperCase, but this function is not correctly worked for russian charset.

      Thanks for help.

      Answers approved by DevExpress Support

      created 5 years ago

      We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

      Note: Hotfixes may be unavailable for betas/updates set for release within a week.

        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.