ColorPalette JSP Tag Overview

The ColorPalette JSP tag is a server-side wrapper for the Kendo UI Chart widget.

Getting Started


Below are listed the steps for you to follow when configuring the Kendo UI ColorPalette.

Step 1 Make sure you followed all the steps from the introductory article on Telerik UI for JSP.

Step 2 Create a new action method which renders the view.

    @RequestMapping(value = {"index"}, method = RequestMethod.GET)
    public String index() {

        return "web/colorpalette/index";

Step 3 Add the Kendo UI taglib mapping to the page.

    <%@taglib prefix="kendo" uri=""%>

Step 4 Add a colorPalette tag.

    <kendo:colorPalette name="colorpalette" value="#ff0000">

Event Handling

Subscribe to Events

You can subscribe to all events exposed by Kendo UI ColorPalette by the handler name.

<kendo:colorPalette name="colorpalette" change="colorpalette_change"></kendo:colorPalette>

    function colorpalette_change() {
        // Handle the change event


Existing Instances

You are able to reference an existing ColorPalette instance via the Once a reference is established, you are able to use the ColorPalette API to control its behavior.

// Put this after your Kendo ColorPalette tag declaration
$(function() {
    // Notice that the Name() of the colorpalette is used to get its client-side instance
    var colorpalette = $("#colorpalette").data("kendoColorPalette");

See Also

In this article