Clearing Css files and/or classes

2 posts, 0 answers
  1. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 29 Mar 2012 Link to this post

    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-
  2. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 03 Apr 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top