Skip to content

Commit 377ed4d

Browse files
committed
Sync with Kendo UI Professional
1 parent 8a29198 commit 377ed4d

File tree

14 files changed

+340
-63
lines changed

14 files changed

+340
-63
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Interval
3+
page_title: Telerik UI DateTimePicker for {{ site.framework }} Documentation - Interval
4+
description: "Get familiar with the Telerik UI DateTimePicker component for {{ site.framework }} and how to set its interval feature."
5+
slug: htmlhelpers_datetimepicker_interval_aspnetcore
6+
position: 9
7+
---
8+
9+
# Interval
10+
11+
The {{ site.product }} DateTimePicker allows you to specify the time interval between the values in the time view of the popup list.
12+
13+
Depending on the [Component Type](% slug htmlhelpers_componenttype_timepicker_aspnetcore %), you can set the interval in two distinct ways.
14+
15+
## Setting the Interval in Classic Render Mode
16+
17+
When the [`ComponentType()`](https://docs.telerik.com/{{ site.platform }}/api/kendo.mvc.ui.fluent/datetimepickerbuilder#componenttypesystemstring) method is set to `classic`, the interval is specified in minutes (numeric values).
18+
19+
```HtmlHelper
20+
@(Html.Kendo().DateTimePicker
21+
.Name("datetimepicker")
22+
.ComponentType("classic")
23+
.Interval(7)
24+
)
25+
```
26+
{% if site.core %}
27+
```TagHelper
28+
<kendo-datetimepicker name="datetimepicker"
29+
component-type="classic"
30+
interval="7">
31+
</kendo-datetimepicker>
32+
```
33+
{% endif %}
34+
35+
When the `ComponentType()` is set to `classic`, the interval does not accept an object of hours, minutes, and seconds.
36+
37+
## Setting the Interval in Modern Render Mode
38+
39+
When the [`ComponentType()`](https://docs.telerik.com/{{ site.platform }}/api/kendo.mvc.ui.fluent/datetimepickerbuilder#componenttypesystemstring) method is set to `modern`, the interval is specified as an object of hours, minutes, and seconds.
40+
41+
```HtmlHelper
42+
@(Html.Kendo().DateTimePicker()
43+
.Name("datetimepicker")
44+
.Interval(interval => interval
45+
.Second(15)
46+
.Minute(5)
47+
.Hour(7)
48+
)
49+
)
50+
```
51+
{% if site.core %}
52+
```TagHelper
53+
<kendo-datetimepicker name="datetimepicker">
54+
<interval-settings second="15" minute="5" hour="7" />
55+
</kendo-datetimepicker>
56+
```
57+
{% endif %}
58+
59+
> When the `ComponentType()` is set to `modern`, the interval does not accept a single numerical value.
60+
61+
## See Also
62+
63+
* [Server-Side API](/api/datetimepicker)
64+
{% if site.core %}
65+
* [TagHelper API](https://docs.telerik.com/aspnet-core/api/taghelpers/datetimepicker)
66+
{% endif %}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ position: 0
1010
# {{ site.framework }} DateTimePicker Overview
1111

1212
{% if site.core %}
13-
The Telerik UI DataSource TagHelper and HtmlHelper for {{ site.framework }} are server-side wrappers for the Kendo UI DataSource widget.
13+
The Telerik UI DateTimePicker TagHelper and HtmlHelper for {{ site.framework }} are server-side wrappers for the Kendo UI DateTimePicker widget.
1414
{% else %}
1515
The Telerik UI DateTimePicker HtmlHelper for {{ site.framework }} is a server-side wrapper for the Kendo UI DateTimePicker widget.
1616
{% endif %}
@@ -107,8 +107,11 @@ The DateTimePicker component respects DataAnnotations when the `DateTimePickerFo
107107
| Feature | Description |
108108
|---------|-------------|
109109
| [Disabled dates]({% slug disableddates_datetimepicker_aspnetcore %})|The DateTimePicker allows you to disable specific days that shouldn't be selected by the end user, such as weekends and national holidays.|
110+
| [Component Type]({% slug htmlhelpers_componenttype_datetimepicker_aspnetcore %}) | The DateTimePicker allows you to choose between two rendering options: standard and modern appearance. |
110111
| [Selected dates]({% slug selecteddates_datetimepicker_aspnetcore %})|The DateTimePicker allows you to render a pre-selected date and also define the minimum and maximum dates it displays.|
111112
| [Start view and navigation depth]({% slug navdepth_datetimepicker_aspnetcore %})|The DateTimePicker enables you to set the rendered initial view and define the navigation depth of the views.|
113+
| [Interval]({% slug htmlhelpers_datetimepicker_interval_aspnetcore %}) | You can configure the interval between the time values. |
114+
| [Floating Labels]({% slug htmlhelpers_datetimepicker_floatinglabel_aspnetcore %}) | You can explicitly set a floating label which floats above the field and remains visible. |
112115
| [Validation]({% slug validation_datetimepicker_aspnetcore %})|The DateTimePicker does not automatically update the typed text when the typed text is invalid. Such changes in the input value may lead to unexpected behavior.|
113116
| [Date and time formatting]({% slug datetimeformatting_datetimepicker_aspnetcore %})|The DateTimePicker allows you to define its date and time formatting.|
114117
| [Calendar types]({% slug calendartypes_datetimepicker_aspnetcore %})|By default, the DatePicker works with `Date` objects which support only the [Gregorian](https://en.wikipedia.org/wiki/Gregorian_calendar) calendar.|
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Interval
3+
page_title: Telerik UI TimePicker for {{ site.framework }} Documentation - Interval
4+
description: "Get familiar with the Telerik UI TimePicker component for {{ site.framework }} and how to set its interval feature."
5+
slug: htmlhelpers_timepicker_interval_aspnetcore
6+
position: 9
7+
---
8+
9+
# Interval
10+
11+
The {{ site.product }} TimePicker allows you to specify the time interval between values in the popup list.
12+
13+
Depending on the [Component Type](% slug htmlhelpers_componenttype_timepicker_aspnetcore %), you can set the interval in two distinct ways.
14+
15+
## Setting the Interval in Classic Render Mode
16+
17+
When the [`Component Type()`](https://docs.telerik.com/{{ site.platform }}/api/kendo.mvc.ui.fluent/timepickerbuilder#componenttypesystemstring) method is set to `classic`, the interval is specified in minutes (numeric values).
18+
19+
```HtmlHelper
20+
@(Html.Kendo().TimePicker
21+
.Name("timepicker")
22+
.ComponentType("classic")
23+
.Interval(7)
24+
)
25+
```
26+
{% if site.core %}
27+
```TagHelper
28+
<kendo-timepicker name="timepicker"
29+
component-type="classic"
30+
interval="7">
31+
</kendo-timepicker>
32+
```
33+
{% endif %}
34+
35+
> When the `ComponentType()` is set to `classic`, the interval does not accept an object of hours, minutes and seconds.
36+
37+
## Setting the Interval in Modern Render Mode
38+
39+
When the [`ComponentType()`](https://docs.telerik.com/{{ site.platform }}/api/kendo.mvc.ui.fluent/timepickerbuilder#componenttypesystemstring) method is set to `modern`, the interval is specified as an object of hours, minutes and seconds.
40+
41+
```HtmlHelper
42+
@(Html.Kendo().TimePicker()
43+
.Name("timepicker")
44+
.Interval(interval => interval
45+
.Second(15)
46+
.Minute(5)
47+
.Hour(7)
48+
)
49+
)
50+
```
51+
{% if site.core %}
52+
```TagHelper
53+
<kendo-timepicker name="timepicker">
54+
<interval-settings second="15" minute="5" hour="7" />
55+
</kendo-timepicker>
56+
```
57+
{% endif %}
58+
59+
> When the `ComponentType()` is set to `modern`, the interval does not accept a single numerical value.
60+
61+
## See Also
62+
63+
* [Server-Side API](/api/timepicker)
64+
{% if site.core %}
65+
* [TagHelper API](https://docs.telerik.com/aspnet-core/api/taghelpers/timepicker)
66+
{% endif %}

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,19 @@ The TimePicker component respects DataAnnotation attributes when using the `Time
8787

8888
## Functionality and Features
8989

90-
* [Selected time]({% slug htmlhelpers_timepicker_aspnetcore_selectedtimes %})—The TimePicker allows you to render a pre-selected time and also define the minimum and maximum time it displays.
91-
* [Focused time]({% slug htmlhelpers_timepicker_aspnetcore_focusedtime %})—The TimePicker allows you to define focused time when the pop-up is opened.
92-
* [Formats]({% slug formats_timepicker_aspnetcore %})—The TimePicker allows you to define its time formatting.
93-
* [Validation]({% slug htmlhelpers_timepicker_aspnetcore_validation %})—The TimePicker is designed to keep its input value unchanged even when the typed time is invalid.
94-
* [Globalization]({% slug globalization_timepicker_aspnetcore %})—The globalization process combines the translation of component messages (localization) with adapting them to specific cultures.
95-
* [Accessibility]({% slug accessibility_timepicker_aspnetcore %})—The TimePicker is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and keyboard support.
96-
* [Automatic Correction]({% slug htmlhelpers_timepicker_autocorrect_aspnetcore %})&mdash;You can configure whether the component will autocorrect the user's input when the `Min` and `Max` values are set.
97-
90+
|Feature|Description|
91+
|-------|-----------|
92+
| [Adaptive Mode]({% slug htmlhelpers_timepicker_adaptive_mode_aspnetcore %}) | The TimePicker supports an adaptive mode that provides a mobile-friendly rendering of its popup. |
93+
| [Component Type]({% slug htmlhelpers_componenttype_timepicker_aspnetcore %}) | The TimePicker allows you to choose from both a standard and a modern rendering appearance. |
94+
| [Floating Labels]({% slug htmlhelpers_timepicker_floatinglabel_aspnetcore %}) | You can explicitly set a floating label which floats above the field and remains visible. |
95+
| [Selected time]({% slug htmlhelpers_timepicker_aspnetcore_selectedtimes %}) | The TimePicker allows you to render a pre-selected time and also define the minimum and maximum time it displays. |
96+
| [Focused time]({% slug htmlhelpers_timepicker_aspnetcore_focusedtime %}) |The TimePicker allows you to define focused time when the pop-up is opened. |
97+
| [Interval]({% slug htmlhelpers_timepicker_interval_aspnetcore %}) | You can configure the interval between the time values. |
98+
| [Formats]({% slug formats_timepicker_aspnetcore %}) | The TimePicker allows you to define its time formatting. |
99+
| [Validation]({% slug htmlhelpers_timepicker_aspnetcore_validation %}) | The TimePicker is designed to keep its input value unchanged even when the typed time is invalid. |
100+
| [Globalization]({% slug globalization_timepicker_aspnetcore %}) | The globalization process combines the translation of component messages (localization) with adapting them to specific cultures. |
101+
| [Accessibility]({% slug accessibility_timepicker_aspnetcore %}) | The TimePicker is accessible for screen readers, supports WAI-ARIA attributes, delivers keyboard shortcuts for faster navigation, and allows you to render it in a right-to-left direction. |
102+
| [Automatic Correction]({% slug htmlhelpers_timepicker_autocorrect_aspnetcore %})| You can configure whether the component will autocorrect the user's input when the `Min` and `Max` values are set. |
98103

99104
## Next Steps
100105

docs/api/javascript/ui/maskedtextbox.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,8 @@ Specifies the culture info used by the widget.
3232

3333
#### Example - specify German culture internationalization
3434

35-
<!--
36-
TODO: Add the kendo.culture.de-DE.min.js file as it is required!
37-
38-
Here is a sample script tag:
39-
<script src="https://kendo.cdn.telerik.com/{kendo version}/js/cultures/kendo.culture.de-DE.min.js"></script>
40-
41-
For more information check this help topic:
42-
https://docs.telerik.com/kendo-ui/framework/globalization/overview
43-
-->
44-
35+
36+
<script src="https://kendo.cdn.telerik.com/2024.3.1015/js/cultures/kendo.culture.de-DE.min.js"></script>
4537
<input id="maskedtextbox" />
4638
<script>
4739
$("#maskedtextbox").kendoMaskedTextBox({
@@ -442,7 +434,7 @@ Specifies the value of the MaskedTextBox widget.
442434

443435
An object, which holds the options of the widget.
444436

445-
#### Example - get options of the widget
437+
#### Example - get options of the component
446438

447439
<input id="maskedtextbox" />
448440
<script>
@@ -451,7 +443,8 @@ An object, which holds the options of the widget.
451443
var maskedtextbox = $("#maskedtextbox").data("kendoMaskedTextBox");
452444

453445
var options = maskedtextbox.options;
454-
<script>
446+
console.log(options)
447+
</script>
455448

456449
## Methods
457450

docs/api/javascript/ui/popover.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Defines a kendo template that will be used as the card body inside the popover c
319319
<script>
320320
$(document).ready(function() {
321321
$("#target").kendoPopover({
322-
header: "Header content"
322+
header: "Header content",
323323
body: "Content description"
324324
});
325325
});
@@ -377,7 +377,7 @@ Defines a kendo template that will be used as the card header inside the popover
377377
<script>
378378
$(document).ready(function() {
379379
$("#target").kendoPopover({
380-
header: "Header content"
380+
header: "Header content",
381381
body: "Content description"
382382
});
383383
</script>

docs/api/javascript/ui/scheduler.md

Lines changed: 51 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,24 @@ If the `dataSource` option is an existing [kendo.data.SchedulerDataSource](/api/
261261
url: "https://demos.telerik.com/kendo-ui/service/tasks",
262262
dataType: "jsonp"
263263
}
264-
}
264+
},
265+
schema: {
266+
model: {
267+
id: "ID",
268+
fields: {
269+
ID: { type: "number" },
270+
title: { field: "Title", defaultValue: "No title", validation: { required: true } },
271+
start: { type: "date", field: "Start" },
272+
end: { type: "date", field: "End" },
273+
description: { field: "Description" },
274+
recurrenceId: { from: "RecurrenceID" },
275+
recurrenceRule: { from: "RecurrenceRule" },
276+
recurrenceException: { from: "RecurrenceException" },
277+
ownerId: { field: "OwnerID", defaultValue: 1 },
278+
isAllDay: { type: "boolean", field: "IsAllDay" }
279+
}
280+
}
281+
}
265282
});
266283
$("#scheduler").kendoScheduler({
267284
date: new Date("2022/6/6"),
@@ -4314,7 +4331,7 @@ The field of the resource data item which represents the resource value. The res
43144331
resources: [
43154332
{
43164333
field: "roomId",
4317-
dataValueField: "roomId"
4334+
dataValueField: "roomId",
43184335
dataSource: [
43194336
{ text: "Small meeting room", roomId: 1 },
43204337
{ text: "Big meeting room", roomId: 2 }
@@ -6089,11 +6106,11 @@ The name of the view. Typically, used to get the name of the currently selected
60896106
}
60906107
]
60916108
});
6092-
6093-
var scheduler = $("#scheduler").data("kendoScheduler");
6094-
var viewName = scheduler.view().name;
6095-
6096-
alert(viewName)
6109+
setTimeout(function(){
6110+
var scheduler = $("#scheduler").data("kendoScheduler");
6111+
var viewName = scheduler.view();
6112+
alert(scheduler.view().name)
6113+
})
60976114
</script>
60986115

60996116
### views.selected `Boolean` *(default: false)*
@@ -6818,7 +6835,9 @@ Gets currently expanded scheduler events.
68186835
scheduler.saveEvent();
68196836
//get second occurrence
68206837
/* The result can be observed in the DevTools(F12) console of the browser. */
6821-
console.log(scheduler.data()[1]);
6838+
setTimeout(function(){
6839+
console.log(scheduler.data()[1]);
6840+
})
68226841
</script>
68236842

68246843
### date
@@ -6902,9 +6921,11 @@ The event which should be put in edit mode. Also accepts a string which is the `
69026921
}
69036922
]
69046923
});
6905-
var scheduler = $("#scheduler").data("kendoScheduler");
6906-
var event = scheduler.dataSource.at(0);
6907-
scheduler.editEvent(event);
6924+
setTimeout(function(){
6925+
var scheduler = $("#scheduler").data("kendoScheduler");
6926+
var event = scheduler.dataSource.at(0);
6927+
scheduler.editEvent(event);
6928+
})
69086929
</script>
69096930

69106931
### items
@@ -7052,9 +7073,11 @@ The event which should be removed. Also accepts a string which is the `uid` of t
70527073
}
70537074
]
70547075
});
7055-
var scheduler = $("#scheduler").data("kendoScheduler");
7056-
var event = scheduler.dataSource.at(0);
7057-
scheduler.removeEvent(event);
7076+
setTimeout(function(){
7077+
var scheduler = $("#scheduler").data("kendoScheduler");
7078+
var event = scheduler.dataSource.at(0);
7079+
scheduler.removeEvent(event);
7080+
})
70587081
</script>
70597082

70607083
### resourcesBySlot
@@ -7139,7 +7162,7 @@ Initiates the PDF export and returns a promise. Also triggers the [pdfExport](/a
71397162

71407163
Saves the scheduler event which is open in the edit form and closes it.
71417164

7142-
#### Example - save an new event
7165+
#### Example - save a new event
71437166
<div id="scheduler"></div>
71447167
<script>
71457168
$("#scheduler").kendoScheduler({
@@ -7284,20 +7307,22 @@ Get the time slot from given element.
72847307

72857308
`Object` The time slot.
72867309

7287-
#### Example - save an new event
7310+
#### Example - save a new event
72887311
<div id="scheduler"></div>
72897312
<script>
72907313
$("#scheduler").kendoScheduler({
72917314
date: new Date("2013/6/6")
72927315
});
7293-
var scheduler = $("#scheduler").data("kendoScheduler");
7294-
var element = scheduler.view().content.find("tr:first td:first");
7295-
var slot = scheduler.slotByElement(element);
7316+
setTimeout(function(){
7317+
var scheduler = $("#scheduler").data("kendoScheduler");
7318+
var element = scheduler.view().content.find("tr:first td:first");
7319+
var slot = scheduler.slotByElement(element);
72967320

7297-
/* The result can be observed in the DevTools(F12) console of the browser. */
7298-
console.log("slot startDate: " + slot.startDate);
7299-
/* The result can be observed in the DevTools(F12) console of the browser. */
7300-
console.log("slot endDate: " + slot.endDate);
7321+
/* The result can be observed in the DevTools(F12) console of the browser. */
7322+
console.log("slot startDate: " + slot.startDate);
7323+
/* The result can be observed in the DevTools(F12) console of the browser. */
7324+
console.log("slot endDate: " + slot.endDate);
7325+
})
73017326
</script>
73027327

73037328
### view
@@ -7365,7 +7390,9 @@ The name of the current view. Can be used for refreshing the current view data.
73657390
endTime: new Date("2015/1/1 18:00")
73667391
});
73677392

7368-
scheduler.view(scheduler.viewName());
7393+
setTimeout(function(){
7394+
scheduler.view(scheduler.viewName());
7395+
})
73697396
</script>
73707397

73717398

docs/api/javascript/ui/scrollview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ Defines the aria-label for the previous button.
504504
navigatable: true,
505505
messages: {
506506
previousButtonLabel: "Prev button"
507-
}
507+
},
508508
contentHeight: "100%"
509509
});
510510
</script>

0 commit comments

Comments
 (0)