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: components/dateinput/overview.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ To use a Telerik Date Input for Blazor, add the `TelerikDateInput` tag.
32
32
}
33
33
````
34
34
35
-
The date input provides the following features:
35
+
>caption The date input provides the following features:
36
36
37
37
*`Class` - the CSS class that will be rendered on the `input` element.
38
38
*`Enabled` - whether the `input` is enabled.
@@ -42,6 +42,29 @@ The date input provides the following features:
42
42
*`Width` - the width of the `input`. See the [Dimensions]({%slug common-features/dimensions%}) article.
43
43
* Validation - see the [Input Validation]({%slug common-features/input-validation%}) article.
44
44
45
+
>caption The behavior of the component will depend on the type of field it is bound to, and this can result in different user experience and values that it will output:
46
+
47
+
##### Bound to a Nullabe DateTime
48
+
49
+
* When value is `null` - the `Format` is displayed as a placeholder.
50
+
* When modifying a part, if some parts are not defined, the value remains `null`.
51
+
* When all values are provided, the value changes.
52
+
* Upon deleting any part, the whole value changes to `null`, and all input returns to the format placeholder.
53
+
* When inside an `EditForm`, if no attributes are present on the field, and the value is deleted, no validation error is shown.
54
+
55
+
56
+
57
+
##### Bound to a Non-Nullabe DateTime
58
+
59
+
* When the value is undefined, it defaults to `0001-01-01`, so the component has it as a value.
60
+
* When modifying a part, if some parts are not defined, the bound value does not change.
61
+
* When all values are provided, the value changes.
62
+
* Upon deleting any part, only that part switches to the format placeholder.
63
+
* When inside an `EditForm`, if no attributes are present on the field, and the value is deleted, a validation error is shown.
64
+
65
+
66
+
67
+
45
68
46
69
>caption Example of using validation to prompt the user for certain input
0 commit comments