New to Telerik UI for .NET MAUI? Start a free 30-day trial
Hiding InputAccessoryView Buttons on iOS for Telerik MAUI RichTextEditor
Updated on Dec 22, 2025
Environment
| Version | Product | Author |
|---|---|---|
| 12.0.0 | Telerik UI for .NET MAUI RichTextEditor | Dobrinka 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
InputAccessoryViewin MAUI WebView for Telerik RichTextEditor? - How to disable
UIToolbarbuttons 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:
- Open the
MauiProgram.csfile in your project. - 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();
}
}