New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Columns

Using the Columns property you can organize the colors in the palette so they are rendered in appropriate color groups. By default setting a Preset will automatically set the appropriate Columns property so the given palette is rendered correctly.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Language="vb" AutoEventWireup="true" Inherits="Telerik.Web.Examples.ColorPicker.Columns.DefaultVB"CodeFile="DefaultVB.aspx.vb"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
        <div class="demo-container">
            <div class="inner-demo-container">
                <h2>10 Columns</h2>
                <telerik:RadColorPicker RenderMode="Lightweight" runat="server" Columns="10" ID="RadColorPicker1" Preset="Grayscale">
                </telerik:RadColorPicker>

            </div>

            <div class="inner-demo-container">
                <h2>Default Columns based on preset</h2>
                <telerik:RadColorPicker RenderMode="Lightweight" runat="server" ID="RadColorPicker2" Preset="Grayscale">
                </telerik:RadColorPicker>

            </div>

            <div class="inner-demo-container">
                <h2>Configuring Columns and Width</h2>
                <telerik:RadColorPicker RenderMode="Lightweight" runat="server" ID="RadColorPicker3" Columns="5" Width="210"
                    Preset="Grayscale">
                </telerik:RadColorPicker>

            </div>
        </div>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance