Preset overwrites user defined colors

2 posts, 0 answers
  1. Peichung
    Peichung avatar
    37 posts
    Member since:
    Aug 2008

    Posted 29 Dec 2008 Link to this post


    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,

  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 30 Dec 2008 Link to this post

    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.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top