This is a migrated thread and some comments may be shown as answers.

Applying Custom theme

3 Answers 33 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 26 Oct 2018, 12:25 PM

Hello

I have actually the same Problem as this guy: https://www.telerik.com/forums/themes---why-is-this-so-difficult

I've created a custom theme in a tssp file and I'm struggling applying it. As the Person in the other thread says adding it to theme Manager results in a Exception. The link in the answer says that I could just set the ThemeName Property of the control to the name of the Control but this seems neither to be working.

I can't figure out how this should be done...

 

Thank You for your help

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 29 Oct 2018, 08:55 AM
Hello Marco,

It is easier to load the theme in the code behind. An example is available here: Using custom themes.

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Marco
Top achievements
Rank 1
answered on 29 Oct 2018, 01:31 PM

Just doesn't work....

0
Dimitar
Telerik team
answered on 29 Oct 2018, 02:17 PM
Hi Marco,

You only need the following two lines to load the theme. Please make sure that the theme is not renamed after saving and use the exact same name as in Visual Style Builder:
ThemeResolutionService.LoadPackageFile(@"C:\ControlDefault1.tssp");
ThemeResolutionService.ApplicationThemeName = "ControlDefault1";

Let me know how this works for you.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Themes and Visual Style Builder
Asked by
Marco
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Marco
Top achievements
Rank 1
Share this question
or