New to Telerik UI for .NET MAUI? Start a free 30-day trial

Applying Dark Theme to RadDataGrid Filtering UI in UI for .NET MAUI

Updated on Dec 25, 2025

Environment

VersionProductAuthor
12.1.0Telerik UI for .NET MAUI DataGridDobrinka Yordanova

Description

When using the default filter in RadDataGrid on a device or app dark theme, the text color changes appropriately, but the background color does not adjust, making the text difficult or impossible to read. If you want to enable proper dark theme behavior for Telerik controls, you need to configure a Telerik dark theme swatch.

This knowledge base article also answers the following questions:

  • How to apply Telerik dark theme to DataGrid in UI for .NET MAUI?
  • How to configure DataGrid filtering UI for a dark theme?
  • How to enable runtime theme changes in UI for .NET MAUI?

Solution

To apply a dark theme to the DataGrid Filtering UI, follow these steps:

  1. Enable Telerik theming in your project. Open the .csproj file and ensure the Telerik theming mechanism is included.

    xml
     <UseTelerikTheming>true</UseTelerikTheming>
  2. Add the theme resource to the App.xaml file. Example:

    xml
    <Application.Resources>
        <ResourceDictionary>
            <telerik:TelerikTheme x:Key="TelerikTheme" />
        </ResourceDictionary>
    </Application.Resources>
  3. Set the dark theme swatch in the App.xaml.cs file. Example:

    csharp
    public App()
    {
        InitializeComponent();
        if (Application.Current.RequestedTheme == AppTheme.Dark)
    {
    	TelerikThemeResources.AppTheme = TelerikTheme.PlatformDark;
    }
    else TelerikThemeResources.AppTheme = TelerikTheme.PlatformLight;
    }
  4. Configure runtime theme changes based on device/app theme. Refer to the detailed guide provided in the Change Telerik Theme at Runtime documentation.

  5. For Windows platform, ensure the app dark theme is set properly in Platforms/Windows/App.xaml.cs. Example:

    csharp
    Application.Current.RequestedTheme = ApplicationTheme.Dark;

See Also