New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Color Presets

There are a number of embedded palettes which can be used by setting the Preset property of the RadColorPicker. The available palettes are defined in the ColorPreset enumeration.

C#
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
namespace ColorPicker
{
   public partial class _Default : System.Web.UI.Page
   {
       protected void Page_Load(object sender, EventArgs e)
       {
           foreach(ColorPreset preset in Enum.GetValues(typeof(ColorPreset)))
           {
               LiteralControl literal = new LiteralControl("<br>" + preset.ToString());  
               RadColorPicker radColorPicker = new RadColorPicker();
               radColorPicker.Preset = preset;
               this.Controls.Add(literal);
               this.Controls.Add(radColorPicker);
           }
       }
   }
} 

See Also

In this article
See Also
Not finding the help you need?
Contact Support