How to make ComboBox AutoComplete work with Japanese Input

Posted by: tri.nguyen on 25 June 2020, 12:24 pm EST

    • Post Options:
    • Link

    Posted 25 June 2020, 12:24 pm EST

    HI

    I have a problem when try to use C1ComboBox with below setting:

    MaxDropDownHeight="300"
                           ItemContainerStyle="{StaticResource Item}"
                           ItemsSource="{Binding Customers}"
                           IsEditable="true"
                           AutoComplete="False"
                           IsTextSearchEnabled="True"
                           DisplayMemberPath="CustomerCode"
                           TextSearch.TextPath="CodeAndName"
                           Condition="Contains"
    
    1. I was aiming to search in CodeAndName but show by CustomerCode. How can I achieve this behavior?

    2. When trying to input Japansese by Ime which you know it takes one extract Enter key to finishing input string. It leads C1ComboBox to immediately choose the first row of the filtered list. Is It a Bug? or there is a way to work around that problem?

    Thank You

  • Posted 26 June 2020, 12:01 am EST - Updated 3 October 2022, 11:53 pm EST

    Hi,

    1. C1Combobox filters the items based on their displayed value. And currently C1Combobox doesn’t support searching based on a different property rather than the displayed value.

      Can you please elaborate your use case why you want to perform searching through a different property?

    2. > It leads C1ComboBox to immediately choose the first row of the filtered list.

    It is the default behavior of C1Combobox that it selects the first item upon pressing enter in all filtered items.

    >When trying to input Japanese by Ime which you know it takes one extract Enter key to finishing input string.



    I haven’t seen it my end as Japanese input is working perfectly at my end without pressing Enter. Here are the environment details on which I have tested it.

    OS - Windows 10 Version 1909 64bit.

    Microsoft IME Japanese input.

    Control version - 4.5.20201.697

    Please see the behavior at my end in the attached Gif.

    Please refer the attached sample and let me know if I am missing something?

    Regards,

    Basant

    ComboBoxAutoComplete.zip

  • Posted 27 June 2020, 2:28 am EST - Updated 3 October 2022, 11:53 pm EST

    Hi

    Thank you for your reply.

    1. As you have seen in the below image. I want to support users to search both Code and Name column, but when they make a selection Combobox just display Code, Lable will display Name.

    2. The image below shows my sample data with some duplicates string. 日、株.

      when I type ひ IME will show suggest 日 when I choose this suggested it will write down 日 in Combobox and instead of show filtered drop-down list C1ComboBox doing clear this text.

    Note that I changed DisplayMemberPath to show Name so the filter can work with the Name column.

    Sorry, I don’t know how to product GIF.

  • Posted 29 June 2020, 1:15 am EST

    Hi,

    We are sorry to inform you that this is the limitation of the C1Combobox as it only supports filtering on displayed value. And also it is not possible to show only code in selected item because the selected item follows the same display member path as the other items do.

    > when I choose this suggested it will write down 日 in Combobox and instead of show filtered drop-down list C1ComboBox doing clear this text

    In general when you type a character or word in editor and after that pressing enter will validate the entered text. If it matches with items in combobox then the first matching item is selected otherwise the text is cleared. (If there is already a selected item then after providing the invalid input the same item will be selected again). And this is expected behavior.

    Could you please confirm if this is what you were pointing at? If not, I would request you to provide the screen recording (Just in case, you may use ShareX tool from web) of the issue along with a demo sample and IME details at your end?

    Regards,

    Basant

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels