Custom Colors in ColorPicker inside Editor From XML File

2 posts, 0 answers
  1. Sean
    Sean avatar
    1 posts
    Member since:
    Oct 2013

    Posted 03 Oct 2013 Link to this post

    This question is related to the color picker inside the RadEditor.  We are loading the tool from an xml file like this:

    <tools name="MainToolbar" dockable="true" enabled="true">
         <tool name="ForeColor" />

    And later are loading colors like this: 
        <color value="#0079c3" />

    How do we load the default preset colors along with our custom color?
        <color value="#0079c3" />
        <color value="presets" />

    Thanks much!
  2. Slav
    Slav avatar
    1359 posts

    Posted 08 Oct 2013 Link to this post

    Hello Sean,

    When loading new colors in the Colors dropdown, the old ones are cleared. If the default colors in the dropdown have to be persisted, you need to add them again in the colors collection. You can find information about the default set in this help article.

    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 the blog feed now.
Back to Top