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

Setting Preset on Clientside

1 Answer 28 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Chad Canterbury
Top achievements
Rank 1
Chad Canterbury asked on 18 May 2010, 10:17 PM
I have a dropdown that dictates the color pallet. It will either be default or only black. I am trying to reset the color pallet. How can I do this on the javascript side?

I have tried
function resetInkColor() {  
    var colorPicker = $find('<%= rcpInkColor.ClientID%>');  
    colorPicker.set_preset="Default";
    colorPicker.set_preset("Default");  

I get the error of "Object doesn't support this property or method. What is the correct syntax?

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 21 May 2010, 03:11 PM
Hello Tony Whetstone,
The color picker control does not support changing the preset property with JavaScript. I would recommend that you wrap the color picker and the dropdown in an UpdatePanel or a RadAjaxPanel control and change the property server-side.

Kind regards,
Tsvetie
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ColorPicker
Asked by
Chad Canterbury
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or