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

Clearing Css files and/or classes

1 Answer 38 Views
Editor
This is a migrated thread and some comments may be shown as answers.
-DJ-
Top achievements
Rank 1
-DJ- asked on 29 Mar 2012, 06:39 PM
Hi,

Can someone explain to me why I can do something like this in the page_load event:

Editor.CssClasses.Add("", "")

to clear all classes from the dropdown.

But calling a sub with the exact same code doesn't work?

As I am using the editor in many different pages in this project, I've set up global editor settings which I can call from each page, instead of pasting the same code in all pages.

Some / most settings work from there, but these css settings seem to be very flimsy to say the least.

Any help would be appreciated.

Regards,
-DJ-

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Apr 2012, 09:44 AM
Hi,

I am not sure why your code does not work in your specific scenario, because the provided information is insufficient. You can debug your code and see what happen or you can use ASP.NET Themes to configure multiple editors from a single skin file as shown in the following help article Using Themes.


All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
-DJ-
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or