Setting Preset on Clientside

2 posts, 0 answers
  1. Chad Canterbury
    Chad Canterbury avatar
    13 posts
    Member since:
    Aug 2012

    Posted 18 May 2010 Link to this post

    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%>');  

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

    Posted 21 May 2010 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top