New to Kendo UI for jQueryStart a free 30-day trial

Value

methods

Get or set the selected color. If no argument is given, this returns the currently selected color as a string in format #FFFFFF when the opacity option is off, or rgba(255, 255, 255, 1) when opacity is requested.

If one argument is given, it selects the new color and updates the UI. The argument can be a string in hex, rgb or rgba format, or a [Color][] object. This does not trigger the "change" event.

value

String|kendo.Color

Default: null

Returns:String

the string representation of the current color.

<div id="colorgradient"></div>
<script>
$("#colorgradient").kendoColorGradient();
var colorgradient = $("#colorgradient").data("kendoColorGradient");

// set picker value
colorgradient.value("#ccc");

// get picker value
var value = colorgradient.value();
</script>
Not finding the help you need?
Contact Support