Skip to content

Commit 335c88b

Browse files
committed
Sync with Kendo UI Professional
1 parent 820e3dc commit 335c88b

File tree

23 files changed

+1272
-142
lines changed

23 files changed

+1272
-142
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "year": 2024, "release": 3, "smallRelease": false }
1+
{ "year": 2024, "release": 4, "smallRelease": false }

docs-aspnet/_config-mvc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ html-helpers/data-management/grid/binding/razor-page.md,
7474
knowledge-base/vs-2015-support.md,
7575
knowledge-base/trial-to-commercial-license-troubleshooting.md,
7676
knowledge-base/vs-code-extension-issues.md,
77+
html-helpers/hybrid/*,
7778
html-helpers/helper-basics/fundamentals.md,
7879
html-helpers/helper-basics/declarative-initialization.md,
7980
html-helpers/data-management/filemanager/binding/razor-page.md,

docs-aspnet/html-helpers/editors/colorpicker/appearance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ slug: appearance_colorpicker_aspnetcore
66
position: 2
77
---
88

9-
# ColorPicker Appearance
9+
# Appearance
1010

1111
As of the R1 2022 release, the ColorPicker component uses a new rendering. To learn more about the reasons for this decision, see the [Components Appearance]({% slug components_rendering_overview %}) article.
1212

docs-aspnet/html-helpers/editors/colorpicker/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Events
33
page_title: Events
44
description: "Learn how to handle the events of the Telerik UI ColorPicker component for {{ site.framework }}."
55
slug: events_colorpicker
6-
position: 6
6+
position: 7
77
---
88

99
# Events

docs-aspnet/html-helpers/editors/colorpicker/overview.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,14 @@ The following example demonstrates how to configure the tile size, columns, `Cha
8585

8686
## Functionality and Features
8787

88-
* [Views]({% slug htmlhelpers_views_colorpickerhelper_aspnetcore %})—The ColorPicker enables you to choose between `gradient` or `palette` view types.
89-
* [Appearance]({% slug appearance_colorpicker_aspnetcore%})—The ColorPicker provides you with the option to customize its appearance based on your requirements.
90-
* [Contrast Tool]({% slug htmlhelpers_contrast_tool_colorpickerhelper_aspnetcore %})—The ColorPicker enables you to configure the contrast tool.
91-
* [Formats]({% slug htmlhelpers_formats_colorpickerhelper_aspnetcore %})—The ColorPicker provides support for both HEX and RGB coloring formats.
88+
|Feature|Description|
89+
|-------|-----------|
90+
| [Appearance]({% slug appearance_colorpicker_aspnetcore %})| Customize the ColorPicker appearance by using the available options. |
91+
| [Views]({% slug htmlhelpers_views_colorpickerhelper_aspnetcore %})| The component allows you to choose between `gradient` or `palette` view types. |
92+
| [Contrast Tool]({% slug htmlhelpers_contrast_tool_colorpickerhelper_aspnetcore %})| The ColorPicker supports a contrast tool. |
93+
| [Formats]({% slug htmlhelpers_formats_colorpickerhelper_aspnetcore %})| Configure the ColorPicker input formats. |
94+
| [Palettes]({% slug palettes_colorpicker %})| Define a color palette that the user can pick from. |
95+
| [Events]({% slug events_colorpicker %})| The ColorPicker allows you to handle its events and implement any custom logic. |
9296

9397
## Next Steps
9498

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title: Palettes
3+
page_title: Palettes
4+
description: "Learn more about the color palettes of the Telerik UI for {{ site.framework }} ColorPicker."
5+
slug: palettes_colorpicker
6+
position: 6
7+
---
8+
9+
# Palettes
10+
11+
The ColorPicker supports color palettes that are displayed in the `Palette` view.
12+
13+
The default palette consists of 20 basic colors. You can specify the desired collection of colors through the [`Palette()`](/api/kendo.mvc.ui.fluent/colorpickerbuilder#palettesystemcollectionsgenericienumerable) option.
14+
15+
The example below demonstrates how to define a color palette that will be displayed in the `Palette` view.
16+
17+
```HtmlHelper
18+
@(Html.Kendo().ColorPicker()
19+
.Name("colorPicker")
20+
.Palette(new string[] { "#ddd1c3", "#d2d2d2", "#746153", "#3a4c8b", "#ffcc33", "#fb455f", "#ac120f" })
21+
)
22+
```
23+
{% if site.core %}
24+
```TagHelper
25+
@addTagHelper *, Kendo.Mvc
26+
@{
27+
string[] colors = new string[] { "#ddd1c3", "#d2d2d2", "#746153", "#3a4c8b", "#ffcc33", "#fb455f", "#ac120f" };
28+
}
29+
30+
<kendo-colorpicker name="colorPicker" palette-colors="colors">
31+
</kendo-colorpicker>
32+
```
33+
{% endif %}
34+
35+
## Defining Web-Safe Colors
36+
37+
The ColorPicker provides a color palette of [Web-safe colors](https://en.wikipedia.org/wiki/Web_colors#Web-safe_colors). Use the [`ColorPickerPalette.WebSafe`](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui/colorpickerpalette) enum to define it.
38+
39+
```HtmlHelper
40+
@(Html.Kendo().ColorPicker()
41+
.Name("colorPicker")
42+
.Palette(ColorPickerPalette.WebSafe)
43+
)
44+
```
45+
{% if site.core %}
46+
```TagHelper
47+
@addTagHelper *, Kendo.Mvc
48+
49+
<kendo-colorpicker name="colorPicker" palette="ColorPickerPalette.WebSafe">
50+
</kendo-colorpicker>
51+
```
52+
{% endif %}
53+
54+
## Specifying the Number of Columns
55+
56+
To specify the number of columns of the palette, set up the [`Columns()`](/api/kendo.mvc.ui.fluent/colorpickerbuilder#columnssystemdouble) option. The number of columns is automatically configured when using the default or the `WebSafe` palettes.
57+
58+
```HtmlHelper
59+
@(Html.Kendo().ColorPicker()
60+
.Name("colorPicker")
61+
.Columns(3)
62+
.Palette(new string[] { "#ddd1c3", "#d2d2d2", "#746153", "#3a4c8b", "#ffcc33", "#fb455f", "#ac120f" })
63+
)
64+
```
65+
{% if site.core %}
66+
```TagHelper
67+
@addTagHelper *, Kendo.Mvc
68+
@{
69+
string[] colors = new string[] { "#ddd1c3", "#d2d2d2", "#746153", "#3a4c8b", "#ffcc33", "#fb455f", "#ac120f" };
70+
}
71+
72+
<kendo-colorpicker name="colorPicker" palette-colors="colors" columns="3">
73+
</kendo-colorpicker>
74+
```
75+
{% endif %}
76+
77+
78+
## See Also
79+
80+
* [Server-Side API of the ColorPicker HtmlHelper](/api/colorpicker)
81+
{% if site.core %}
82+
* [Server-Side API of the ColorPicker TagHelper](/api/taghelpers/colorpicker)
83+
{% endif %}
84+
* [Client-Side API of the ColorPicker](https://docs.telerik.com/kendo-ui/api/javascript/ui/colorpicker)

docs-aspnet/html-helpers/editors/colorpicker/razor-page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Razor Pages
33
page_title: Razor Pages
44
description: "An example on how to configure the Telerik UI ColorPicker component for {{ site.framework }} in a Razor Page."
55
slug: htmlhelpers_colorpicker_razorpage_aspnetcore
6-
position: 6
6+
position: 8
77
---
88

99
# ColorPicker in Razor Pages

docs-aspnet/html-helpers/editors/colorpicker/views.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ slug: htmlhelpers_views_colorpickerhelper_aspnetcore
66
position: 3
77
---
88

9-
# ColorPicker Views
9+
# Views
1010

11-
As of R3 SP1 of 2021 for the {{ site.product }} ColorPicker has a new design. One of the introduced new features is the [`.Views()`](/api/kendo.mvc.ui.fluent/colorpickerbuilder#viewssystemstring) configuration. it allows you to choose between a `gradient` and a `palette` view. You can also choose the default view via the [`.View()`](/api/kendo.mvc.ui.fluent/colorpickerbuilder#viewkendomvcuicolorpickerview) option.
11+
The [`Views()`](/api/kendo.mvc.ui.fluent/colorpickerbuilder#viewssystemstring) configuration allows you to choose between the `Gradient` and `Palette` views. Also, you can specify the initially selected view through the [`View()`](/api/kendo.mvc.ui.fluent/colorpickerbuilder#viewkendomvcuicolorpickerview) option.
12+
13+
> The `Views()` configuration was introduced with the R3 2021 SP1 release.
14+
15+
The following example shows how to enable the available ColorPicker views and define a default view that will be displayed when the component opens.
1216

1317
```HtmlHelper
1418
@(Html.Kendo().ColorPicker()
@@ -28,13 +32,13 @@ As of R3 SP1 of 2021 for the {{ site.product }} ColorPicker has a new design. On
2832
{% if site.core %}
2933
```TagHelper
3034
@{
31-
string[] views = new string[] { "gradient", "palette" };
35+
string[] viewsList = new string[] { "gradient", "palette" };
3236
}
3337
34-
<kendo-colorpicker name="PatetteColorPicker" preview="false" view="palette" views="views">
38+
<kendo-colorpicker name="PatetteColorPicker" preview="false" view="palette" views="viewsList">
3539
</kendo-colorpicker>
3640
37-
<kendo-colorpicker name="GradientColorPicker" preview="false" view="gradient" views="views">
41+
<kendo-colorpicker name="GradientColorPicker" preview="false" view="gradient" views="viewsList">
3842
</kendo-colorpicker>
3943
```
4044
{% endif %}
@@ -43,4 +47,4 @@ As of R3 SP1 of 2021 for the {{ site.product }} ColorPicker has a new design. On
4347

4448
* [Views of the {{ site.product }} ColorPicker (Demo)](https://demos.telerik.com/{{ site.platform }}/colorpicker/views)
4549
* [Server-Side API](/api/colorpicker)
46-
* [Client-side API](/api/javascript/ui/colorpicker)
50+
* [Client-side API](https://docs.telerik.com/kendo-ui/api/javascript/ui/colorpicker)

0 commit comments

Comments
 (0)