Selection Problem with AutoComplete as custom editor within FlexGrid

Posted by: poopirose on 18 November 2025, 3:45 am EST

    • Post Options:
    • Link

    Posted 18 November 2025, 3:45 am EST

    Hi, I’m in trouble with Autocomplete as custom editor in FlexGrid.

    When using AutoComplete as a custom editor in FlexGrid, and when there is only one option item in the AutoComplete dropdown,

    the option item is selected automatically, and cannot be canceled(the value cannot be deleted, the text cannot be set null).

    If AutoComplete control is outside of FlexGrid and used as single control, even if the FlexGrid column has only one option, the item can be unselected, and the value can be set null.

    Is this by design? Or are there any solutions?

    If there’s any solutions, can I ask you to show it?

    Thanks always

  • Posted 18 November 2025, 6:44 am EST

    Hi,

    We have forwarded this issue to the engineering team for confirmation if it is the expected behavior or not, with internal tracking ID- WJM-37229. We will update you when we have a response from the engineering team on the same.

    For now, as a workaround, you can set the ‘isRequired’ property on Column to false. After setting this property, you’ll be able to remove the value from the cell by selecting the cell and then pressing the ‘Delete’ or ‘Backspace’ key. If you want to set the null value by clearing the text from the editor, then you can override the ‘_cellEditEnding’ method of the custom editor. Please refer to the attached sample demonstrating the same.

    Regards

    workaround sample.zip

  • Posted 19 November 2025, 3:41 am EST

    Thanks for your quick reply! I checked your comment and received sample.

    I’ve already set isRequired property false.

    And I tried override the eventhandler _cellEditEnding method, but the following compile error displayed.

    The property ‘_cellEditEnding’ is private, and this can be accessed only inside the class ‘_CustomEditor’

    ts(2341)


    *I delevep using typescript and Wijmo Library 5.20251.34

    *I translated above message from Japanese to English, message is displayed in Japanese

    Is there any suggestions? If any, I’m happy to hear.

    Thanks to your supports,

  • Posted 20 November 2025, 12:34 am EST

    Hello,

    Thank you for sharing the information. The observed error occurs because of overriding an internal method; it is a type error that can be ignored as a workaround by setting the type of wjGrid._CustomEditor.prototype to any. I have created a sample in Typescript for you- please verify the solution and let us know if it works.

    Sample link: https://stackblitz.com/edit/typescript-z3ygg8pw?file=index.ts

    If you encounter any issues or have any questions, feel free to let us know.

    Regards,

  • Posted 20 November 2025, 3:22 am EST

    Thanks a lot for your advice and sample! It worked as expected.

    AutoComplete control inside FlexGrid can handle/ignore only one option item, and the text can be deleted and fix it.

    I appreciate your advice, received sample, taking the time for me!

    By the way, is this by design? Do I need to implement on all grids?

    Can I wait for your/engeneer team’s confirmation?

    Anyway, it’s so helpful. You all helped me, thanks so much!

  • Posted 20 November 2025, 7:31 am EST

    Hello,

    I’ve reached out to the development team again to confirm whether this will be addressed on our end, as the current behavior appears to be by design. In the meantime, you can continue using the workaround.

    Since we’re overriding an internal wijmo.grid method, the override only needs to be applied once. It will work across multiple grids as long as they all use the same wijmo.grid package.

    Regards

  • Posted 21 November 2025, 3:50 am EST

    I understood what you pointed out. I confirmed that the implementation once is enough.

    I’ve marked your post above as the answer. Thank you for all of your quick responses and supports!

Need extra support?

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

Learn More

Forum Channels