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

Preset overwrites user defined colors

1 Answer 22 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Peichung
Top achievements
Rank 1
Peichung asked on 29 Dec 2008, 09:55 PM
Hi,

I used a preset palette, say Median, and added some more colors to the palette in Page_Load.  However, I noticed that when the page postback, all my user defined colors were gone.  I ended up defining colors on every postback.  Is this behavior normal?  I would expect to set the colors once in the "if (!IsPostBack)" block.  Thanks,

Peichung

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 30 Dec 2008, 01:53 PM
Hi Peichung,
For the time being, the RadColorPicker control does not persist its Items collection across postbacks for performance reasons. That is why you have to add your custom colors on every postback.

However, this feature is on our TODO list for the control, but I cannot give you an estimate when it will be implemented.

Regards,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ColorPicker
Asked by
Peichung
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or