Skip to content

Commit d32f56e

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent d38a980 commit d32f56e

File tree

7 files changed

+107
-0
lines changed

7 files changed

+107
-0
lines changed

docs-aspnet/compatibility/jquery-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The following table provides a list of the jQuery versions that are compatible w
2323

2424
| Major Releases | jQuery Version | Comments |
2525
| :--- | :--- | :--- |
26+
| [UI for ASP.NET Core 2021.3.914 (R3 2021)](https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/ui-for-asp-net-core-r3-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.6.0|
2627
| [UI for ASP.NET Core 2021.2.511 (R2 2021)](https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/ui-for-asp-net-core-r2-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.6.0|
2728
| [UI for ASP.NET Core 2021.1.119 (R1 2021)](https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/ui-for-asp-net-core-r1-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.5.1|
2829
| [UI for ASP.NET Core 2020.3.915 (R3 2020)](https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/ui-for-asp-net-core-r3-2020)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.5.1|

docs-aspnet/getting-started-mvc/prerequisites/jquery-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The following table provides a list of the jQuery versions that are compatible w
2323

2424
| Major Releases | jQuery Version | Comments |
2525
| :--- | :--- | :--- |
26+
| [UI for ASP.NET MVC 2021.3.914 (R3 2021)](https://www.telerik.com/support/whats-new/aspnet-mvc/release-history/ui-for-asp-net-mvc-r3-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.6.0|
2627
| [UI for ASP.NET MVC 2021.2.511 (R2 2021)](https://www.telerik.com/support/whats-new/aspnet-mvc/release-history/ui-for-asp-net-mvc-r2-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.6.0|
2728
| [UI for ASP.NET MVC 2021.1.119 (R1 2021)](https://www.telerik.com/support/whats-new/aspnet-mvc/release-history/ui-for-asp-net-mvc-r1-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.5.1|
2829
| [UI for ASP.NET MVC 2020.3.915 (R3 2020)](https://www.telerik.com/support/whats-new/aspnet-mvc/release-history/ui-for-asp-net-mvc-r3-2020)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.5.1|
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
title: Hidden Fields
3+
page_title: Hidden Fields
4+
description: "Get started with the Telerik UI Form HtmlHelper for {{ site.framework }} and learn how to set hidden fields."
5+
slug: htmlhelpers_form_aspnetcore_hiddenfields
6+
position: 8
7+
---
8+
9+
# Hidden Fields
10+
11+
The Telerik ASP.NET {{ site.framework }} Form component provides built-in support for hidden fields. You can use this feature to perform a number of actions such as hiding the `ID` property.
12+
13+
The following example demonstrates how to configure a Form with two visible and one hidden field (`UserID`).
14+
15+
```Razor
16+
@(Html.Kendo().Form<Kendo.Mvc.Examples.Models.Form.UserViewModel>()
17+
.Name("formExample")
18+
.HtmlAttributes(new { action = "Index", method = "POST" })
19+
.Validatable(v =>
20+
{
21+
v.ValidateOnBlur(true);
22+
v.ValidationSummary(vs => vs.Enable(false));
23+
})
24+
.Items(items =>
25+
{
26+
items.AddGroup()
27+
.Label("Sign up form")
28+
.Items(i =>
29+
{
30+
i.Add()
31+
.Field(f => f.UserID)
32+
.Editor(editor => editor.Hidden());
33+
i.Add()
34+
.Field(f => f.UserName)
35+
.Label(l => l.Text("Username:"));
36+
i.Add()
37+
.Field(f => f.Password)
38+
.Label(l => l.Text("Password:"))
39+
.EditorTemplateHandler("setPasswordEditor");
40+
i.Add()
41+
.Field(f => f.Email)
42+
.Label(l => l.Text("Email:"));
43+
});
44+
})
45+
)
46+
```
47+
48+
To add support for the `HiddenInput` attribute, use the following implementation:
49+
50+
```Model
51+
[HiddenInput]
52+
public int UserID
53+
{
54+
get;
55+
set;
56+
}
57+
```
58+
59+
```View
60+
@(Html.Kendo().Form<Kendo.Mvc.Examples.Models.Form.UserViewModel>()
61+
.Name("formExample")
62+
.HtmlAttributes(new { action = "Index", method = "POST" })
63+
.Items(items =>
64+
{
65+
items.Add()
66+
.Field(model => model.UserID);
67+
})
68+
)
69+
```
70+
{% if site.core %}
71+
To add a method for enabling the injection of the `AntiForgeryToken` input in:
72+
73+
```Razor
74+
@(Html.Kendo().Form<Kendo.Mvc.Examples.Models.Form.UserViewModel>()
75+
.Name("formExample")
76+
.HtmlAttributes(new { action = "Index", method = "POST" })
77+
.Items(items =>
78+
{
79+
items.AddAntiForgeryToken(Html.AntiForgeryToken());
80+
})
81+
)
82+
```
83+
{% else %}
84+
To add a method for enabling the injection of the `AntiForgeryToken` input in:
85+
86+
```Razor
87+
@(Html.Kendo().Form<Kendo.Mvc.Examples.Models.Form.UserViewModel>()
88+
.Name("formExample")
89+
.HtmlAttributes(new { action = "Index", method = "POST" })
90+
.Items(items =>
91+
{
92+
items.AddAntiForgeryToken();
93+
})
94+
)
95+
```
96+
{% endif %}
97+
98+
## See Also
99+
100+
* [Hidden Fields Demo of the Form HtmlHelper for {{ site.framework }}](https://demos.telerik.com/{{ site.platform }}/form/hidden-fields)
101+
* [Server-Side API](/api/form)

docs-aspnet/html-helpers/layout/form/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ The following example demonstrates a basic configuration for the Form HtmlHelper
9494
* [Orientation]({% slug htmlhelpers_form_aspnetcore_orientation %})
9595
* [Validation]({% slug htmlhelpers_form_aspnetcore_validation %})
9696
* [Accessibility]({% slug htmlhelpers_form_aspnetcore_accessibility %})
97+
* [Hidden Fields]({% slug htmlhelpers_form_aspnetcore_hidden_fields %})
9798

9899
## See Also
99100

docs/accessibility/section-508-wcag.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ The following table lists the Section 508 and WCAG 2.1 compliance levels of supp
7070
|Pager |Yes |AAA |[Browse](https://demos.telerik.com/kendo-ui/pager/index)
7171
|PanelBar |Yes |AAA |[Browse](https://demos.telerik.com/kendo-ui/panelbar/index)
7272
|PivotGrid |Yes |AAA |[Browse](https://demos.telerik.com/kendo-ui/pivotgrid/index)
73+
|PopOver |Yes |AAA |[Browse](https://demos.telerik.com/kendo-ui/popover/index)
7374
|QRCode |Yes |AAA |[Browse](https://demos.telerik.com/kendo-ui/qrcode/index)
7475
|RadialGauge |Yes |AAA |[Browse](https://demos.telerik.com/kendo-ui/radial-gauge/index)
7576
|RadioButton |Yes |AA |[Browse](https://demos.telerik.com/kendo-ui/styling/radios)

docs/intro/supporting/jquery-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The following table provides a list of the jQuery versions that are compatible w
2121

2222
| Major Releases | jQuery Version | Comments |
2323
| :--- | :--- | :--- |
24+
| [Kendo UI 2021.3.914 (R3 2021)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-r3-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.6.0|
2425
| [Kendo UI 2021.2.511 (R2 2021)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-r2-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.6.0|
2526
| [Kendo UI 2021.1.119 (R1 2021)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-r1-2021)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.5.1|
2627
| [Kendo UI 2020.3.915 (R3 2020)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-r3-2020)|1.12.4| Also compatible with 1.10.x, 2.2.x and 3.5.1|

docs/styles-and-layout/sass-version-compatibility.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The following table describes which versions of the Kendo UI for jQuery are comp
1313

1414
| Kendo UI for jQuery | Kendo Sass Themes |
1515
|:--- |:--- |
16+
| Kendo UI 2021.3.914 (R3 2021) | @progress/kendo-theme-bootstrap@4.41.2<br>@progress/kendo-theme-default@4.41.2<br>@progress/kendo-theme-material@4.41.2<br>@progress/kendo-theme-classic@4.41.2 |
1617
| Kendo UI 2021.2.616 (R2 2021 SP1) | @progress/kendo-theme-bootstrap@4.35.1<br>@progress/kendo-theme-default@4.38.1<br>@progress/kendo-theme-material@3.33.1 |
1718
| Kendo UI 2021.2.511 (R2 2021) | @progress/kendo-theme-bootstrap@4.35.1<br>@progress/kendo-theme-default@4.38.1<br>@progress/kendo-theme-material@3.33.1 |
1819
| Kendo UI 2021.1.330 (R1 2021 SP2) | @progress/kendo-theme-bootstrap@4.33.0<br>@progress/kendo-theme-default@4.35.0<br>@progress/kendo-theme-material@3.31.0 |

0 commit comments

Comments
 (0)