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


The OnClientColorPreview client-side event occurs as the mouse hovers over a color box within the palette.

The event handler receives parameters:

  1. The color picker instance that fired the event.

  2. Event arguments with the following properties:

    • get_color: returns the color of the color box where the mouse is hovering.

The example below displays the value of the color picker as the mouse passes over each color box.

function colorPreview(sender, eventArgs)
   var myDiv = document.getElementById("myDiv");
   myDiv.innerHTML = 'Color selecting: ' + eventArgs.get_color();
In this article
Not finding the help you need? Improve this article