Unplanned
Last Updated: 16 Jul 2024 08:50 by Jiri
Jiri
Created on: 12 Jul 2024 12:40
Category: AutoComplete
Type: Feature Request
1
AutoComplete: Add Event for SuggestionsView Visibility Change

Hi Team,

I need to know when the SuggestionsView is visible or not. This appears to be independent of the existing events, so I am requesting an official feature for this to be implemented.

I do have a shaky workaround right now, but it is not reliable and this ultimately requires something from the Telerik UI for Maui side to be implemented.

Thank you!

Jiri

2 comments
Jiri
Posted on: 16 Jul 2024 08:50

Hello Yana,

Thank you for your workaround. I will continue using my current, albeit less reliable, solution that avoids reflection. Since I am using AOT in my Maui apps, my applications must be reflection-free.

Please let me know when or if the IsOpen property propagation will be available in the Telerik libraries.

Thank you!

Kind regards,

Jiri

ADMIN
Yana
Posted on: 16 Jul 2024 07:54

Hello Jiri,

Thank you for sending the feature suggestion - indeed, for the time being there isn't a direct way to find out when the popup with the suggestions is shown/hidden.

I would suggest the following approach as a temporary workaround - you can access the popup through a reflection and subscribe to its PropertyChanged event to track when IsOpen is updated:

FieldInfo internalPopup = this.autoComplete.GetType().GetField("popup", BindingFlags.NonPublic | BindingFlags.Instance);
RadPopup myPopup = internalPopup.GetValue(this.autoComplete) as RadPopup;
myPopup.PropertyChanged += (sender, args) =>
{
    if (args.PropertyName == "IsOpen")
    {
        bool isOpen = (sender as RadPopup).IsOpen;
    }
};

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.