ColorPicker Views
As of R3 SP1 of 2021 for the Telerik UI for ASP.NET MVC ColorPicker has a new design. One of the introduced new features is the .Views()
configuration. It allows you to choose between a gradient
and a palette
view. You can also choose which the default view would be through the .View()
option.
@(Html.Kendo().ColorPicker()
.Name("PatetteColorPicker")
.Preview(false)
.View(ColorPickerView.Palette)
.Views(new string[]{ "gradient", "palette" })
)
@(Html.Kendo().ColorPicker()
.Name("GradientColorPicker")
.Preview(false)
.View(ColorPickerView.Gradient)
.Views(new string[]{ "gradient", "palette" })
)