Same class aliases in Apply CSS dropdown

2 posts, 1 answers
  1. Vitaliy
    Vitaliy avatar
    3 posts
    Member since:
    Aug 2012

    Posted 01 Nov 2012 Link to this post

    Hi,

    When I add classes with the same value attribute to the <classes> element of the "ToolsFile.xml" file, then only last one is displayed in the Apply CSS dropdown list. For example:

    <classes>
            <class name="Name 1" value=".class1" />
            <class name="Name 2" value=".class1" />
    </classes>

    In this case there is only "Name 2" class in the list.

    Is this expected behavior? And if it is, is this documented somewhere? Is there any configuration to allow displaying all classes with the same value?

    Thank you in advance.

    Best regards,
    Vitaliy
  2. Answer
    Rumen
    Admin
    Rumen avatar
    14324 posts

    Posted 02 Nov 2012 Link to this post

    Hi,

    This is by design. If you would like you can implement a custom dropdown with the desired items in it. You can fire them using the editor.fire("ApplyClass", { value: ".class1" }); method.

    Kind regards,
    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.
Back to Top