color picker losing value on postback

2 posts, 0 answers
  1. ajit
    ajit avatar
    46 posts
    Member since:
    Jun 2009

    Posted 18 Nov 2009 Link to this post

    Hi ,
                 I am using a rad colorpicker on dynamically generated docks. Whenever a new dock is plotted the colorpicker in the  old plotted dock loses its value because of the postback. Is there any suggestion to avoid this occurrence.

    Thank you

    Regards,
    Ajit
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 20 Nov 2009 Link to this post

    Hi Ajit,
    As you load the RadColorPicker dynamically, you need to make sure that it is added to the page after the postback on exactly the same place as it was before the postback and that its ID (and ClientID) are the same. This is necessary so that the control can load its ViewState. In case you continue to have problems with the state of the RadColorPicker, please post the code of a simple test page the demonstrates this problem hare and I will help you fix it.

    Best wishes,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top