You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/data-management/grid/events.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ position: 5
8
8
9
9
# Events
10
10
11
-
You can subscribe to [all Grid events](/api/Kendo.Mvc.UI.Fluent/GridEventBuilder) and then use them to further customize the behavior of the Grid.
11
+
You can subscribe to [all Grid events](/api/kendo.mvc.ui.fluent/grideventbuilder) and then use them to further customize the behavior of the Grid.
12
12
13
-
The example below demonstrates how to use the [`Change` event](/api/Kendo.Mvc.UI.Fluent/GridEventBuilder#changesystemstring) that the Grid generates when the user selects a table row or a cell.
13
+
The example below demonstrates how to use the [`Change` event](/api/kendo.mvc.ui.fluent/grideventbuilder#changesystemstring) that the Grid generates when the user selects a table row or a cell.
The user can resize more than one row at the same time. To do so, set the `Selectable` configuration to enable multiple rows selection. Once the user has made multiple selections, they can drag the resize handle on one of the rows and the resize will affect the rest of the selected elements automatically.
The `RowResize` event fires when the user resizes one or more rows. You can subscribe to the event and use it to further customize the behavior of the Grid.
95
95
96
+
## Known Limitations
97
+
98
+
* The row resize feature does not work with the [drag & drop]({% slug htmlhelpers_row_drag_drop_grid %}) functionality of the Grid. You can use only one of the two features at the same time.
99
+
* In a [Hierarchical]({% slug hierarchy_grid_htmlhelper_aspnetcore %}) scenario, only the innermost child Grid(s) can have resizable rows. The row resizing feature must be disabled for all the parent Grid components.
100
+
* The row resizing functionality is not supported with [virtual scrolling]({% slug virtual_scrolling_aspnetcore_grid %}) as the virtual scrolling relies on calculating the average row height based on already loaded data. Having a large variance of row heights or an unknown number of rows that are not bound to data (such as group headers) can cause unexpected behavior.
101
+
96
102
## See Also
97
103
98
104
* [Row Resizing in the {{ site.product }} Grid](https://demos.telerik.com/{{ site.platform }}/grid/row-resizing)
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/editors/datepicker/overview.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,26 @@ The following example demonstrates the basic configuration for the DatePicker.
44
44
```
45
45
{% endif %}
46
46
47
+
## Model Binding
48
+
49
+
The DatePicker component respects DataAnnotations when the `DatePickerFor(m=>m.Property)` method is used. Besides the `[Required]` attribute, the `[DisplayFormat]` and `[Range]` attributes are also supported. The [`Format`](/api/kendo.mvc.ui.fluent/datepickerbuilder#formatsystemstring) configuration will be set to the provided DisplayFormat and the [`Min`](/api/kendo.mvc.ui.fluent/datepickerbuilder#minsystemstring) and [`Max`](/api/kendo.mvc.ui.fluent/datepickerbuilder#maxsystemstring) configurations will be set based on the range provided.
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/editors/datetimepicker/overview.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,26 @@ The `ParseFormats` option is of type `string[]` and can be assigned either by a
76
76
```
77
77
{% endif %}
78
78
79
+
## Model Binding
80
+
81
+
The DateTimePicker component respects DataAnnotations when the `DateTimePickerFor(m=>m.Property)` method is used. Besides the `[Required]` attribute, the `[DisplayFormat]` and `[Range]` attributes are also supported. The [`Format`](/api/kendo.mvc.ui.fluent/datetimepickerbuilder#formatsystemstring) configuration will be set to the provided DisplayFormat and the [`Min`](/api/kendo.mvc.ui.fluent/datetimepickerbuilder#minsystemstring) and [`Max`](/api/kendo.mvc.ui.fluent/datetimepickerbuilder#maxsystemstring) configurations will be set based on the range provided.
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/layout/form/validation.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ position: 9
10
10
11
11
The Form has a built-in validator. Validation of all Form fields is triggered on form submission. By default, the Form displays a validation message when an editor is focused, then blurred without setting its value.
12
12
13
-
The following example shows how to disable the built-in validation on blur.
13
+
The following example shows how to disable the built-in validation on blur.
@@ -65,9 +65,9 @@ The following example shows how to disable the built-in validation on blur.
65
65
66
66
## Validation Summary
67
67
68
-
The Form can display a list of all validation errors. The validation summary is rendered as a unordered list of messages. By default, this option is disabled.
68
+
The Form can display a list of all validation errors. The validation summary is rendered as an unordered list of messages. By default, this option is disabled.
69
69
70
-
The following example shows how to enable validation summary in the Form.
70
+
The following example shows how to enable validation summary in the Form.
@@ -99,7 +99,7 @@ The following example shows how to enable validation summary in the Form.
99
99
100
100
You can set the `ValidationSummary.Container` option, if you want to use an element as a container for the validation messages. This allows you to specify where the messages will be displayed, for example, above the Form, below it, or elsewhere on the page.
101
101
102
-
The following example shows how to set `ValidationSummary.Container`.
102
+
The following example shows how to set `ValidationSummary.Container`.
103
103
104
104
```HtmlHelper
105
105
<div class="container"></div>
@@ -162,7 +162,7 @@ The following example shows how to set `ValidationSummary.Container`.
162
162
163
163
You can customize validation error messages with templates.
164
164
165
-
The following example shows how to define a template with the `Validatable.ErrorTemplate` option.
165
+
The following example shows how to define a template with the `Validatable.ErrorTemplate` option.
@@ -252,6 +252,21 @@ The following example demonstrates custom validation of the `LastName` and `Reti
252
252
}
253
253
```
254
254
255
+
## Custom Validation
256
+
257
+
The Form component supports DataAnnotation attributes and will configure the editors and the built-in validation based on the DataAnnotation attributes set for the model properties. The following table summarizes the supported DataAnnotation attributes:
258
+
259
+
|Attribute|Description|
260
+
|----------|-----------|
261
+
|[Required]| Adds the `required` atribute to a form element. |
262
+
|[Compare]| Provides an attribute that compares two properties. |
263
+
|[DataType]| Specifies the name of an additional type to associate with a data field. Supported types are `EmailAddress`, `Phone`, `Url`, `Text`, `Password` and `HiddenInput`.|
264
+
|[RegularExpression]| Specifies that the field must match the specified regular expression. |
265
+
|[Display]| Sets a value that is used for a Label and `title` attribute for the field, if they are not explicitly configured. |
266
+
|[StringLength]| Specifies the minimum and maximum length of characters that are allowed in a data field.|
267
+
|[HiddenInput]| Indicates whether the `<input />` element should be hidden. |
268
+
|[Range]| Specifies the numeric range constraints for the property. |
269
+
255
270
## See Also
256
271
257
272
*[Validation Demo of the Form HtmlHelper for {{ site.framework }}](https://demos.telerik.com/{{ site.platform }}/form/validation)
0 commit comments