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

Custom Colors in ColorPicker inside Editor From XML File

1 Answer 19 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 03 Oct 2013, 07:06 PM
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" />
</tools>

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

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

Thanks much!

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 08 Oct 2013, 10:28 AM
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.

Regards,
Slav
Telerik
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.
Tags
ColorPicker
Asked by
Sean
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or