HideSoftInputOnTapped on RadEntry for numeric inputs on iOS

1 Answer 94 Views
Entry NumericInput
Adam
Top achievements
Rank 1
Adam asked on 10 Sep 2024, 08:51 PM

It appears MAUI for .NET 8 doesn't have a way to close the soft keyboard on iOS when the entry is numeric. Applying the HideSoftInputOnTapped is works for the built-in controls that specify a numeric keyboard (e.g. SearchBar) but does not work for Telerik controls such as:

<telerik:RadEntry Keyboard="Numeric"/>

Can anyone suggest a workaround for this?

I've tried implementing this concept, swapping in the RadEntryHandler, but could not get the following line to compile (it didn't let me assign a value to the InputAccessoryView).

handler.PlatformView.InputAccessoryView = toolbar;

Here is a complete description of what I'm referring to.

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 12 Sep 2024, 10:27 AM

Hello Adam,

I tested the behavior and on my side the keyboard closes when tapping outside of the control. I have set the  HideSoftInputOnTapped property to "True" on page level.

this is the page 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"
             HideSoftInputOnTapped="True"
             xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
             x:Class="MauiApp1.MainPage">
  <VerticalStackLayout>
      <Entry Placeholder="maui entry"/>
      <telerik:RadEntry x:Name="entry"
                        Placeholder="telerik maui entry"
                        Keyboard="Numeric"/>

      <telerik:RadNumericInput x:Name="numeric" />

  </VerticalStackLayout>

</ContentPage>

and a video of the behavior is attached. 

Send me a sample project where the behavior occurs, also the iOS, Telerik MAUI and .NET MAUI version you use.

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.

Chris Burtch
Top achievements
Rank 1
commented on 12 Sep 2024, 04:23 PM

Unfortunately, my company decided not to renew the license and so we are stuck on Telerik MAUI 6.5.0. I just saw in the release notes for 6.7.0 that this bug was fixed, so I'm sure that explains it:

  • [Android] [iOS] Keyboard remains open when taping outside of the control when HideSoftInputOnTapped of ContentPage is set to true.
Didi
Telerik team
commented on 13 Sep 2024, 05:42 AM

This behavior is fixed with 6.7.0 version. I am sorry to hear the company won't renew the license. Having latest version you can use latest features and improvements in the suite. We have added a new components like Slider, Toggle and Templated Buttons, new powerful list component - CollectionView, built in views for add/edit, delete appointments in the Scheduler control and many more. 

The release history can be found here: https://www.telerik.com/support/whats-new/maui-ui/release-history 

Tags
Entry NumericInput
Asked by
Adam
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or