New to Telerik UI for .NET MAUIStart a free 30-day trial

Hiding InputAccessoryView Buttons on iOS for Telerik MAUI RichTextEditor

Updated on Dec 22, 2025

Environment

VersionProductAuthor
12.0.0Telerik UI for .NET MAUI RichTextEditorDobrinka Yordanova

Description

I want to hide the InputAccessoryView buttons that appear on the keyboard toolbar when using the Telerik UI for .NET MAUI RichTextEditor control on iOS. This is required because the RichTextEditor internally uses the MAUI WebView, and the toolbar buttons are part of the WebView's native configuration.

This knowledge base article also answers the following questions:

  • How to remove toolbar buttons from the iOS keyboard in Telerik MAUI RichTextEditor?
  • How to customize InputAccessoryView in MAUI WebView for Telerik RichTextEditor?
  • How to disable UIToolbar buttons for WebView in Telerik MAUI RichTextEditor?

Solution

To hide the InputAccessoryView buttons on iOS, add custom logic for the WebView inside the MauiProgram.cs file. Follow these steps:

  1. Open the MauiProgram.cs file in your project.
  2. Add the following code snippet to customize the WebViewHandler:
csharp
public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .UseTelerik()
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
            });
#if IOS
        Microsoft.Maui.Handlers.WebViewHandler.Mapper.AppendToMapping("MyCustomization", (handler, view) => 
        {
            var myView = handler.PlatformView;
            var item = myView.InputAssistantItem;
            if (item != null)
            {
                item.LeadingBarButtonGroups = System.Array.Empty<UIKit.UIBarButtonItemGroup>();
                item.TrailingBarButtonGroups = System.Array.Empty<UIKit.UIBarButtonItemGroup>();
            }
        });
#endif
        return builder.Build();
    }
}

See Also