Edit this page

ColorPicker JSP Tag Overview

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

Getting Started


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

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/colorpicker/index";

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

    <%@taglib prefix="kendo" uri="http://www.kendoui.com/jsp/tags"%>

Step 4 Add a colorpicker tag.

    <kendo:colorPicker name="colorpicker" value="#ff0000">

Event Handling

Subscribe to Events

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

<kendo:colorPicker name="colorpicker" change="colorpicker_change"></kendo:colorPicker>

    function colorpicker_change() {
        // Handle the change event


Existing Instances

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

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

See Also

Other articles on Telerik UI for JSP and on the ColorPicker:

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article