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/columns/resizing.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ The resizing behavior of the Grid columns depends on whether scrolling is enable
12
12
13
13
For a runnable example, refer to the [demo on resizing columns in the Grid](https://demos.telerik.com/{{ site.platform }}/grid/column-resizing).
14
14
15
-
When scrolling is disabled and a Grid column is resized, other columns change widths too, so that the sum of all column widths remains constant. If both the columns and the Grid `<div>` already have their minimum possible widths applied, then the resizing of the columns stops working. In such scenarios, use either of the following approaches:
15
+
When scrolling is disabled and a Grid column is resized, other columns change widths too, including the ones with `Resizable` configuration options set to `false`, so that the sum of all column widths remains constant. If both the columns and the Grid `<div>` already have their minimum possible widths applied, then the resizing of the columns stops working. In such scenarios, use either of the following approaches:
16
16
* Apply a larger width to the Grid, or
17
17
* Enable scrolling.
18
18
@@ -21,6 +21,45 @@ When scrolling is enabled and a column is resized, all other columns maintain th
21
21
* If the sum of all column widths is equal to the width of the Grid, no horizontal scrollbar appears.
22
22
* If the sum of all column widths is less than the width of the Grid, an empty space after the last column appears.
23
23
24
+
The `2024 Q2` release introduces a `Resizable` configuration option that allows you to disable resizing for specific columns.
25
+
26
+
The example below demonstrates how to disable resizing for the `ShipCity` column:
By design, the last column of the Grid has no right border, so that no double border appears at the right end of the Grid if the Grid table width matches the Grid width. If needed, you can apply a right border with the CSS code from the following example. The color value of the `#ccc` border has to match the color of the cell border from the Kendo UI theme. To obtain this, check the styles of the table cell by using a DOM inspector.
Copy file name to clipboardExpand all lines: docs/api/javascript/ui/calendar.md
+62-1Lines changed: 62 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,38 @@ Represents the Kendo UI Calendar widget. Inherits from [Widget](/api/javascript/
12
12
13
13
## Configuration
14
14
15
+
### allowReverse `Boolean`*(default: false)*
16
+
17
+
Enables the user to select an end date that is before the start date. This option is available only when the [`selectable`](/api/javascript/ui/calendar/configuration/selectable) configuration is set to **range**.
*`"long"` - The cells will display a decade range **2000-2009**, **2010-2019**.
35
+
*`"short"` - The cells will display just the starting year of the decade **2000**, **2010**.
36
+
37
+
#### Example - render the short version of the century cells
38
+
39
+
<div id="calendar"></div>
40
+
<script>
41
+
$("#calendar").kendoCalendar({
42
+
centuryCellsFormat: "short",
43
+
start: "century"
44
+
});
45
+
</script>
46
+
15
47
### componentType `String`*(default: "classic")*
16
48
17
49
Specifies the component type of the widget.
@@ -410,7 +442,7 @@ Allows customization of the text of the Today button present in the widget in it
410
442
411
443
### selectable `String`*(default: "single")*
412
444
413
-
By default user is able to select a single date. The property can also be set to "multiple" in order the multiple date selection to be enabled. More information about multiple selection can be found in the [Selection]({% slug overview_kendoui_calendar_widget %}#selection) article.
445
+
By default user is able to select a single date. The property can also be set to **multiple** or **range**. More information about the different selection modes can be found in the [Selection]({% slug overview_kendoui_calendar_widget %}#selection) article.
414
446
415
447
#### Example - enable the multiple selection
416
448
@@ -485,6 +517,35 @@ The following settings are available for the **start** value:
485
517
});
486
518
</script>
487
519
520
+
### range `Object`*(default: { start: null, end: null })*
521
+
522
+
Specifies an initial range selection. This option is available only when the [`selectable`](/api/javascript/ui/calendar/configuration/selectable) configuration is set to `range`.
523
+
524
+
#### Example - specify the selected range of the component
525
+
526
+
<div id="calendar"></div>
527
+
<script>
528
+
$("#calendar").kendoCalendar({
529
+
selectable: "range",
530
+
range: { start: new Date(2024, 3, 3), end: new Date(2024, 3, 13) }
531
+
});
532
+
</script>
533
+
534
+
### showOtherMonthDays `Boolean`*(default: true)*
535
+
536
+
When this configuration is enabled, the calendar will render days from the previous and next months in the current view.
537
+
538
+
> The `showOtherMonthDays` configuration is not compatible with the [`range`](/api/javascript/ui/calendar/configuration/selectable) selection. It is advised that this property is set to **false** when `selectable` is set to **range**.
Copy file name to clipboardExpand all lines: docs/api/javascript/ui/daterangepicker.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,32 @@ Represents the Kendo UI DateRangePicker widget. Inherits from [Widget](/api/java
11
11
12
12
## Configuration
13
13
14
+
### allowReverse `Boolean`*(default: false)*
15
+
16
+
Enables the user to select an end date that is before the start date.
17
+
18
+
#### Example - enable reverse selection
19
+
20
+
<div id="daterangepicker"></div>
21
+
<script>
22
+
$("#daterangepicker").kendoDateRangePicker({
23
+
allowReverse: true
24
+
});
25
+
</script>
26
+
27
+
### autoClose `Boolean`*(default: true)*
28
+
29
+
Specifies whether the calendar popup should close automatically when a range is selected.
30
+
31
+
#### Example - prevent the popup closure
32
+
33
+
<div id="daterangepicker"></div>
34
+
<script>
35
+
$("#daterangepicker").kendoDateRangePicker({
36
+
autoClose: false
37
+
});
38
+
</script>
39
+
14
40
### adaptiveMode `String`*(default: "none")*
15
41
16
42
Specifies the adaptive rendering of the component. The supported values are: `none`*(default)*, `auto`.
@@ -32,6 +58,32 @@ Specifies the adaptive rendering of the component. The supported values are: `no
32
58
});
33
59
</script>
34
60
61
+
### calendarButton `Boolean`*(default: false)*
62
+
63
+
If this configuration is enabled, a calendar button will appear inside the date inputs. This is similar to the calendar button in the DatePicker component. The calendar popup will be opened only when the button is clicked. Clicking inside the input itself will have no effect.
64
+
65
+
#### Example - render the calendar buttons
66
+
67
+
<div id="daterangepicker"></div>
68
+
<script>
69
+
$("#daterangepicker").kendoDateRangePicker({
70
+
calendarButton: true
71
+
});
72
+
</script>
73
+
74
+
### clearButton `Boolean`*(default: false)*
75
+
76
+
If this configuration is enabled, a clear button will appear in the date inputs where a date is selected. Clicking on the clear button will remove the selected date from the input.
Copy file name to clipboardExpand all lines: docs/api/javascript/ui/multiviewcalendar.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,37 @@ Represents the Kendo UI MultiViewCalendar widget. Inherits from [Widget](/api/ja
12
12
13
13
## Configuration
14
14
15
+
### allowReverse `Boolean`*(default: false)*
16
+
17
+
Enables the user to select an end date that is before the start date. This option is available only when the [`selectable`](/api/javascript/ui/multiviewcalendar/configuration/selectable) configuration is set to **range**.
When this configuration is enabled, the MultiViewCalendar will render days from the previous and next months in the current views.
479
+
480
+
> The `showOtherMonthDays` configuration is not compatible with the [`range`](/api/javascript/ui/multiviewcalendar/configuration/selectable) selection. It is advised that this property is set to **false** when `selectable` is set to **range**.
page_title: jQuery Calendar Documentation - Calendar Century Cells Format
4
+
description: "Learn the possible formats for the century cells in the Kendo for jQuery Calendar."
5
+
slug: century_cells_format_calendar
6
+
position: 9
7
+
---
8
+
9
+
# Century Cells Format
10
+
11
+
As of R2 2024 version of the Kendo UI suite, the Calendar component on option to choose from two formats for the century cells in the Calendar century view. The default value of the [`centuryCellsFormat`](/api/javascript/ui/calendar/configuration/centurycellsformat) configuration is `long` which causes the cells to render like "2010-2019". The below example shows how you can change the format to display only the starting year of the decade.
12
+
13
+
```dojo
14
+
<div id="calendar"></div>
15
+
<script>
16
+
$("#calendar").kendoCalendar({
17
+
centuryCellsFormat: "short",
18
+
start: "century"
19
+
});
20
+
</script>
21
+
```
22
+
23
+
24
+
## See Also
25
+
26
+
*[Century Cells Format Demo of the Calendar](https://demos.telerik.com/kendo-ui/calendar/century-cells-format)
27
+
*[JavaScript API Reference of the Calendar](/api/javascript/ui/calendar)
Copy file name to clipboardExpand all lines: docs/controls/calendar/overview.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ The component also supports custom templates for its Month view and configuratio
22
22
*[Day template]({% slug daytemplate_kendoui_calendar %})–You can modify the appearance of one or more Calendar days.
23
23
*[Week numbers]({% slug weeknum_kendoui_calendar %})–The Calendar also enables you to showcase the week number.
24
24
*[Selection]({% slug selection_kendoui_calendar %})–You can also enable the user to select one or more Calendar dates.
25
+
*[Century Cells Format]({% slug century_cells_format_calendar %})—The component exposes two formats for the century cells.
26
+
*[Reverse Selection]({% slug reverse_selection_calendar %})—The component allows you to pick an end date which is before the start date.
27
+
*[Show Other Month Days]({% slug other_month_days_calendar %})—The component allows you to pick an end date which is before the start date.
25
28
*[Accessibility]({% slug accessibility_calendar %})–The Calendar is accessible for screen readers, supports WAI-ARIA attributes, and delivers keyboard shortcuts for faster navigation.
description: "Check the reverse selection feature in the Kendo for jQuery Calendar."
5
+
slug: reverse_selection_calendar
6
+
position: 10
7
+
---
8
+
9
+
# Reverse Selection
10
+
11
+
As of R2 2024 version of the Kendo UI suite, the Calendar provides an [`allowReverse`](/api/javascript/ui/calendar/configuration/allowreverse) selection. It allows you to pick an end date which is before the selected start date when the [`selectable`](/api/javascript/ui/calendar/configuration/selectable) option is set to `range`.
12
+
13
+
```dojo
14
+
<div id="calendar"></div>
15
+
<script>
16
+
$("#calendar").kendoCalendar({
17
+
selectable: "range",
18
+
allowReverse: true,
19
+
showOtherMonthDays:false
20
+
});
21
+
</script>
22
+
```
23
+
> When range selection is configured, the [`showOtherMonthDays`](/api/javascript/ui/calendar/configuration/showothermonthdays) needs to be set to `false`.
24
+
25
+
## See Also
26
+
27
+
*[Reverse Selection Demo of the Calendar](https://demos.telerik.com/kendo-ui/calendar/reverse-selection)
28
+
*[JavaScript API Reference of the Calendar](/api/javascript/ui/calendar)
Copy file name to clipboardExpand all lines: docs/controls/calendar/selection.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ To perform the multiple date selection, the user can also use the keyboard:
30
30
<div id="calendar"></div>
31
31
<script>
32
32
$("#calendar").kendoCalendar({
33
-
selectable: "multiple"
34
-
});
33
+
selectable: "multiple"
34
+
});
35
35
</script>
36
36
```
37
37
@@ -41,9 +41,9 @@ The following image demonstrates a Calendar with selected multiple dates.
41
41
42
42
## Range Date Selection
43
43
44
-
The Calendar enables the range date selection over the keyboard.
44
+
The Calendar enables the range date selection over the keyboard. As of R2 2024 release, the component supports `range` selection through the [`selectable`](/api/javascript/ui/calendar/configuration/selectable) option.
45
45
46
-
The usage of the `Shift` key allows the user to select a range of dates in the same month or across different months:
46
+
The usage of the `Shift` key allows the user to select a range of dates in the same month or across different months when the [`selectable`](/api/javascript/ui/calendar/configuration/selectable) configuration is set to `multiple`:
47
47
48
48
*`Shift` + mouse-clicking specific dates—Selects all dates between the most recently selected one (with `Space` or mouse click) and the clicked cell.
49
49
*`Shift` + mouse clicking specific dates—If no previous selection was made, selects all dates from the beginning to the clicked cell.
0 commit comments