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

color picker losing value on postback

1 Answer 46 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
ajit
Top achievements
Rank 1
ajit asked on 18 Nov 2009, 04:42 PM
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

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 20 Nov 2009, 01:47 PM
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.
Tags
ColorPicker
Asked by
ajit
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or