AutoComplete

1 Answer 206 Views
AutoComplete
Aram
Top achievements
Rank 1
Aram asked on 07 Feb 2023, 08:36 AM

Hi,

i have problem with autocomplete view, Unfocuse is not fired (after focusing and unfocusing) on android, its working properly for UWP. Could you please have a look? Also there is possibility to change Color of focus pointer 

this is my code

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:telerikPrimitives="http://schemas.telerik.com/2022/xaml/maui" 
             x:Class="LoyHutz.Maui.Pages.Test"
             Title="Test">
    <VerticalStackLayout>
        <Label 
            Text="Welcome to .NET MAUI!"
            VerticalOptions="Center" 
            HorizontalOptions="Center" />

    <telerikPrimitives:RadAutoComplete x:Name="Autocomplete"  BackgroundColor="Grey" 
                                               VerticalOptions="Center" 
                                               BorderColor="Transparent"
                                               BorderThickness="0"
                                               NoResultsMessage=""
                                               TextSearchPath=""
                                                Focused="Autocomplete_Focused"  Unfocused="Autocomplete_Unfocused"
                                                TextChanged="Autocomplete_TextChanged"/>
  </VerticalStackLayout>
</ContentPage>

 

Thanks in advance

 

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 09 Feb 2023, 01:26 PM

Hello Aram,

Let me get straight to the questions:

1 Focused/Unfocused events on Android

On my side the events are fired as expected. I attached a sample project. Download and test on your side. May I ask you to modify the project and send it back to me for further research?

2) Caret color:
I have logged this as a feature request on your behalf: https://feedback.telerik.com/maui/1597050-autocomplete-provide-an-option-to-change-the-color-of-the-caret-cursor Could you please share on which platforms you want to change the caret color. 

Regards,
Didi
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.

Aram
Top achievements
Rank 1
commented on 09 Feb 2023, 01:37 PM

Hello Didi, 

thanks for your answer.

its working for this case when we make unfocus dynamically, could you please check the case when there is a tap out of autocomplete part

also there is an issue on githab for maui control|
.Net 7 Android Unfocused Entry Behavior only gets called when leaving the page · Issue #11881 · dotnet/maui · GitHub

thanks in advance

 

Didi
Telerik team
commented on 10 Feb 2023, 08:35 AM

Hi Aram,

Yes the issue seems related to the .NET MAUI Entry control on Android. Telerik RadEntry inherits form .NET MAUI Entry. RadAutoComplete uses RadEntry internally. This is the reason why the behavior occurs in the RadAutoComplete control.

On Android in order to unfocus the control, you need to call Unfocus() method or focusing another element that receives focus (another entry).

Tags
AutoComplete
Asked by
Aram
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or