With the rad editor is there a way to persist custom colors so that when a user comes back their custom colors are retained? i'm fine with using a cookie approach if necessary so that the custom colors are user/browser specific.
Thanks!
-Mark
2 Answers, 1 is accepted
0
Accepted
Rumen
Telerik team
answered on 20 May 2010, 01:11 PM
Hi Mark,
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. As a workaround I suggest you to pass the client-side color collection on the server upon postback using an Hidden Field, e.g.:
Once you receive the custom colors you can save them in a database and load them depending on the logged user.
Greetings,
Rumen
the Telerik team
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?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.
Thanks Rumen, for the most part i was able to take this as is and make it work. I set it up using cookies as the storage method which will work for our scenario. We have lots of controls and postbacks on this page so figuring out where to insert the save/update/load code to some work but otherwise i think this will work just fine. I appreciate the quick reply.