In the newer versions the add custom color functions was reintroduced for cell and table background colors. Is it possible to store the added colors per usergroup for later usage?
1 Answer, 1 is accepted
answered on 05 Aug 2010, 11:31 AM
You can use RadEditor's client side methods get_colors() and set_colors() in order to preserve the previously added colors. For example you can assign a handler to the onBeforeUnload window event to store current color collection in a cookie and then use that cookie to set this collection to the editor OnClientLoad event.
get_colors() - this method returns an array of all the colors in ColorPicker palette
set_colors(colors) - this method requires an array property and set the color palette in the ColorPicker dropdown
In addition, RadEditor populates its color collection on the client (on the first loading of the ColorPicker dropdown) and it is not accessible on the server, so in order to preserve the custom colors that were added I suggest you to pass the client-side color collection on the server upon postback using an Hidden Field, e.g.:
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items