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

    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
  2. Tsvetie
    Admin
    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.

    Regards,
    Tsvetie
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top