Pick Color From RadColorPicker To Label

2 posts, 0 answers
    SATISH avatar
    2 posts
    Member since:
    Jun 2011

    Posted 29 Jul 2011 Link to this post

    Hi All,
    I have RadColorPicker Having Id="RadColorPicker1" and also Have a asp Label..
    I have Question that once i select the color from RadColorPicked ; That should apply to Asp Label..
    Please suggest me out..
    I'm beginner of Telerik technology..
  2. Slav
    Slav avatar
    1359 posts

    Posted 29 Jul 2011 Link to this post

    Hello Satish,

    There are two approaches to achieve the desired effect:
    1. You can use the sever-side event of RadColorPicker ColorChanged in order to apply the name and the color itself to the selected label.
    2. Another option is the client-side event of RadColorPicker OnClientColorChange, which can also be used to set the label control with the selected color.

    I have attached a sample project demonstrating the suggested solutions, in which the server-side and client-side approaches are presented respectively on the pages ServerSide.aspx and ClientSide.aspx.

    Please let us know if you run into difficulties during the implementation of this functionality.

    All the best,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top