Reset RadMessageBox to the default theme

1 Answer 8 Views
MessageBox Themes and Visual Style Builder
YF
Top achievements
Rank 1
Iron
YF asked on 18 Nov 2025, 12:14 AM

Our application doesn't explicitly set a default theme so it defaults to ControlDefault.
One screen uses the MaterialBlueGrey theme, so I wanted the related MessageBoxes to also use that theme.

Per the instructions I used the following code:

RadMessageBox.SetThemeName("MaterialBlueGrey");
RadMessageBox.Show("MESSAGE");
RadMessageBox.SetThemeName("ControlDefault");

The problem is that, although the overall look goes back to the default theme, some elements stay with the MaterialBlueGrey theme. For example: the button height & caption font.

I tried all these with the same result:

RadMessageBox.SetThemeName("");
RadMessageBox.ThemeName = "";
RadMessageBox.ThemeName = "ControlDefault";

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 18 Nov 2025, 11:50 AM

Hello, Yossi,

Using the SetThemeName() is the correct way to apply a theme to RadMessageBox. SetThemeName() work fine on my side either when set MaterialBlueGrey theme or ControlDefault theme. Also, when I reset the theme to ControlDefault, RadMessageBox looks normal with this theme. I can not observe larger button height or caption font. Maybe there is something different on your side. 

Is it possible to provide a sample project that can replicate your existing setup and demonstrate the issue there. When I have the exact problem replicated, I could be able to investigate the case more precisely and assist you further.

Looking forward to your reply.

Regards,
Nadya | Tech Support Engineer
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.

Tags
MessageBox Themes and Visual Style Builder
Asked by
YF
Top achievements
Rank 1
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or