Skip to content

Commit 1e84a46

Browse files
committed
Sync with Kendo UI Professional
1 parent 4ceade1 commit 1e84a46

File tree

31 files changed

+994
-366
lines changed

31 files changed

+994
-366
lines changed

docs-aspnet/backwards-compatibility/2024-backwards-compatibility.md

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,167 @@ The code is moved to the demo application, where it is used for demo purposes on
9898
| ----------- | ----------- |
9999
| `Resizable(String)` | [`Resize(TextAreaResize)`](/api/kendo.mvc.ui.fluent/textareabuilder#resizekendomvcuitextarearesize) |
100100

101+
### Class Changes in Components
102+
103+
**AIPrompt**
104+
105+
* The `k-button-flat-primary` class is now replaced with `k-button-flat-base` class.
106+
* Added `k-prompt-view` and `k-prompt-popup`.
107+
108+
**ContextMenu**
109+
110+
* The `k-widget` class is now removed.
111+
* The `k-menu-expand-arrow-icon` class has also been removed.
112+
113+
**DockManager**
114+
115+
* Buttons in the vertical toolbar are now size `k-button-sm`, instead of `k-button-md`.
116+
* Unpinned pane has now class `k-pane-unpinned` instead of `k-pane-pinned`.
117+
* Pin and close button of not active TabStrip Tabs now have `k-button-flat-primary`, instead of `k-button-flat-base`.
118+
119+
**Grid**
120+
121+
* Added `k-button-icon.k-icon.k-svg-i-arrow-rotate-cw.k-svg-icon` to the refresh button in the pager.
122+
* Added `k-drag-col` to the draggable of the grid.
123+
* Added `k-filtercell-operator` div wrapper on the filter dropdown and clear button.
124+
* Added `k-grid-add-row`.
125+
* Added `k-table-group` class to `k-group-cell.k-table-group-td.k-table-td`.
126+
* Added `k-input-icon`.
127+
* Removed `k-label` class from extra class on `k-pager-info`.
128+
* Removed `k-reorderable` class from `tbody` of a reorderable grid.
129+
* Removed `k-editable` class.
130+
131+
**ImageEditor**
132+
133+
* The `k-widget` class is now removed.
134+
* The `k-imageeditor-pane-confirm-button` and `k-imageeditor-pane-button` classes have been removed from the resize/crop pane buttons.
135+
* The `k-colspan-1` class is removed from the `k-col-span-1` element.
136+
* The `k-colspan-2` class is removed from the `k-col-span-2` element.
137+
138+
**Map**
139+
140+
* The following classes have been substituted:
141+
142+
|Versions prior to 2024 Q4| Versions 2024 Q4 and later
143+
|:--- |:---
144+
|`k-navigator-up`| `k-navigator-n` |
145+
|`k-navigator-right`| `k-navigator-e` |
146+
|`k-navigator-down`| `k-navigator-s` |
147+
|`k-navigator-left`| `k-navigator-w` |
148+
149+
* The `k-widget` class is now removed.
150+
* The `km-widget` class has also been removed.
151+
* Added `k-button-group-solid` class on the Zoom button group.
152+
153+
**Menu**
154+
155+
* The `k-vertical` class is removed from the scroll wrapper when the Menu is scrollable.
156+
* The `k-horizontal` class is removed from the scroll wrapper when the Menu is scrollable.
157+
* The `k-widget` is now removed.
158+
* The `k-menu-expand-arrow-icon` is now removed.
159+
* The `k-group` class has also been removed.
160+
* With the latest theme changes the following classes of the scroll buttons are removed: `k-scroll-up`, `k-scroll-down`, `k-scroll-left`, `k-scroll-right`, `k-rounded`
161+
* Changed `k-button-solid` to `k-button-flat` on the scroll buttons
162+
* Changed `k-button-solid-base` to `k-button-flat-base` on the scroll buttons
163+
* Added `k-menu-scroll-wrapper-vertical` to the `div.k-menu-scroll-wrapper` only when the orientation is vertical, not applicable for the horizontal orientation
164+
165+
**PDFViewer**
166+
167+
* The PDFViewer starts using the [Pager](https://demos.telerik.com/{{ site.platform }}/pager/index) component internally and follows its specification.
168+
* Added `k-icon` class to the `k-dropzone-icon` in the center of the viewer.
169+
* Added `k-toolbar-combobox` to the combobox for zoom options.
170+
* Removed `k-widget`.
171+
* Removed `k-zoom-in-out-group` on the zoom tools buttongroup.
172+
* Removed `k-toggle-selection-group` on selection buttongroup.
173+
174+
**PivotGridV2**
175+
176+
The following classes are now removed:
177+
178+
* The `k-pivotgrid-header-total` class rendered in the total row of PivotGrid aggregates is replaced by `k-pivotgrid-total`.
179+
* The `k-grid-header-table` class is now removed.
180+
* The `k-table-md` class is removed from the `.k-pivotgrid-table` tables.
181+
* The `k-table-tbody` has been removed from the `.k-pivotgrid-tbody` elements.
182+
* The `k-table-row` class is now removed from the `.k-pivotgrid-row` elements.
183+
* The `k-grid-table` class has been removed from the `.k-pivotgrid-table` values table.
184+
* The `k-table-th` has been removed from the `th.k-pivotgrid-cell` elements.
185+
* The `k-table-td` has been removed from the `td.k-pivotgrid-cell` elements.
186+
* The `k-pos-relative` and `k-widget` classes are now removed from the Configurator.
187+
* The `k-rounded-full` class is substituted by `k-round-md`.
188+
* Added `k-pivotgrid-expanded` on an expanded header.
189+
* The text of a header is now rendered in a span element with `k-pivotgrid-header-title` class.
190+
* The content of a cell is rendered in a span element with this `k-pivotgrid-content` class.
191+
* The form in the configurator has `k-form-md` class added to its `k-form` class.
192+
* Added `k-chip-more-action` class on the more action span in configurator chip.
193+
194+
**Scheduler**
195+
196+
* The following classes are substituted as follows:
197+
198+
|Versions prior to 2024 Q4| Versions 2024 Q4 and later
199+
|:--- |:---
200+
|`k-nav-today`| `[data-selector='today']`
201+
|`k-nav-prev`| `[data-selector='previous']`
202+
|`k-nav-next`| `[data-selector='next']`
203+
|`k-view-month`| `[data-selector='month']`
204+
|`k-view-week`| `[data-selector='week']`
205+
|`k-view-day`| `[data-selector='day']`
206+
|`k-view-agenda`| `[data-selector='agenda']`
207+
|`k-view-timeline`| `[data-selector='timeline']`
208+
|`k-svg-i-arrow-left`| `k-i-caret-alt-left`
209+
|`k-svg-i-arrow-right`| `k-i-caret-alt-right`
210+
211+
* The `k-button-rectangle` is removed from the buttons in views ButtonGroup.
212+
* The`k-heading-cell` is removed from the Scheduler first column.
213+
* The `k-scheduler-table-auto` is removed from the Month view.
214+
* The `k-scheduler-group-cell` is removed from grouped Scheduler.
215+
* Added `k-scheduler-navigation` class to Today, Previous and Next buttongroup.
216+
* Added `k-scheduler-views` class to views buttongroup.
217+
* Added `k-scheduler-cell` class to Weekview, dayview, timelineview.
218+
* Added `k-group-cell` class.
219+
* Removed `k-event-top-actions` element from scheduler events.
220+
* Removed `k-event-bottom-actions` element from scheduler events
221+
* Removed `k-last` from inappropriate scenarios.
222+
* Replaced `k-svg-i-arrow-` classes of Prev and Next buttons in RTL Scheduler with `k-svg-i-caret-alt`.
223+
224+
**Splitter**
225+
226+
The Splitter has received a rendering update. As a result, the below classes have been added:
227+
228+
* New `k-splitter-flex` and `k-splitter-vertical/horizontal` classes have been added to the `k-splitter` root `div` element.
229+
* New `k-pane-static` class has been added to the non-resizable panes.
230+
* New `k-hidden` class has been added to the collapsed panes.
231+
232+
Apart from that, we made changes in the positioning styles of the component. Until now, the panes had the `position:absolute` style. As of the 2024 Q4 release, the panes are positioned using flexbox.
233+
234+
**TabStrip**
235+
236+
* The `k-widget` class has been removed.
237+
* The `k-tabstrip-item` class has been removed.
238+
* The `k-tab-on-top` class has been removed.
239+
* The `k-content` class has been removed.
240+
* `k-link-text` is added.
241+
242+
**ToolBar**
243+
244+
* The following classes have been replaced or removed:
245+
246+
|Versions prior to 2024 Q4| Versions 2024 Q4 and later
247+
|:--- |:---
248+
|`k-toolbar-tool`| `[data-item-role='toolbar-tool']`
249+
250+
* The `k-toolbar-toggle-button` class has been removed.
251+
* The `k-dropdown-button` class has also been removed.
252+
253+
This change is applied to all components that use the Toolbar internally, such as Grid, Gantt, Scheduler, etc.
254+
255+
**TreeList**
256+
257+
* The `k-i-none` class has been replaced with `ref-blank-icon` attribute.
258+
* The `k-grid-display-block` class is now removed from `.k-treelist` element.
259+
* Added `k-drag-col` to the col element for draggable column both in the header table and the body table.
260+
261+
101262
## {{ site.product }} Q2 2024
102263

103264
### Target Framework

docs-aspnet/html-helpers/data-management/grid/editing/popup.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,41 @@ When editing is performed, server validation is often needed. This section demon
264264
}
265265
</script>
266266
```
267+
268+
{% if site.core %}
269+
## Using DateOnly and TimeOnly properties with .NET 6
270+
271+
`DateOnly` and `TimeOnly` types were introduced with .NET 6, however serialization and model binding support were introduced by the framework at a later stage.
272+
273+
In order to edit `DateOnly` or `TimeOnly` properties when using a Grid configured for PopUp editing in a .NET 6 application you will need to provide a custom PopUp editor template where editors for these properties are defined:
274+
```OrderViewModel.cs
275+
public class OrderViewModel
276+
{
277+
public int OrderID { get; set; }
278+
279+
public DateOnly ShipDate { get; set; }
280+
}
281+
```
282+
```CustomEditorTemplate.cshtml
283+
@model OrderViewModel
284+
285+
<div>
286+
@Html.LabelFor(model => model.OrderID)
287+
@Html.EditorFor(model => model.OrderID)
288+
</div>
289+
<div>
290+
@Html.LabelFor(model => model.ShipDate)
291+
@Html.Kendo().DatePickerFor(model => model.ShipDate)
292+
</div>
293+
```
294+
```HtmlHelper
295+
@(Html.Kendo().Grid<AspNetCoreGrid.Models.OrderViewModel>()
296+
.Name("grid")
297+
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("CustomEditorTemplate"))
298+
)
299+
```
300+
{% endif%}
301+
267302
## See Also
268303

269304
* [Editing Approaches by the Grid HtmlHelper for {{ site.framework }} (Demos)](https://demos.telerik.com/{{ site.platform }}/grid/editing)

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@ The following example demonstrates the basic configuration for the DateInput.
4343
@[template](/_contentTemplates/core/declarative-initialization-note.md#declarative-initialization-note)
4444
{% endif %}
4545

46+
{% if site.core %}
47+
## DateOnly and TimeOnly compatability
48+
49+
As of the 2024 Q4 Release the {{ site.framework }} DateInput is compatible with the [`DateOnly`](https://learn.microsoft.com/en-us/dotnet/api/system.dateonly?view=net-8.0) and [`TimeOnly`](https://learn.microsoft.com/en-us/dotnet/api/system.timeonly?view=net-8.0) types. Following this release you can also set the value of the component to a `DateOnly` or a `TimeOnly` property:
50+
51+
```HtmlHelper
52+
@(Html.Kendo().DateInput().Name("dateOnly").Value(new DateOnly(2024,5,6)))
53+
@(Html.Kendo().DateInput().Name("timeOnly").Value(new TimeOnly(10,20,30)))
54+
```
55+
```TagHelper
56+
<kendo-dateinput name="dateOnly" value="new DateOnly(2024,5,6)"></kendo-dateinput>
57+
<kendo-dateinput name="timeOnly" value="new TimeOnly(10,20,30)"></kendo-dateinput>
58+
```
59+
{% endif %}
60+
4661
## Functionality and Features
4762

4863
* [Appearance](https://docs.telerik.com/{{ site.platform }}/html-helpers/editors/dateinput/appearance)&mdash;You are able to customize the appearance of the DateInput by configuring its size, fill mode, and border radius.

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following example demonstrates the basic configuration for the DatePicker.
3737
{% if site.core %}
3838
```TagHelper
3939
<kendo-datepicker name="datepicker"
40-
min="new DateTime(1900, 1, 1)"
40+
min="new DateTime(1900, 1, 1)"
4141
max="new DateTime(2099, 12, 31)"
4242
value="DateTime.Today">
4343
</kendo-datepicker>
@@ -68,6 +68,20 @@ The DatePicker component respects DataAnnotations when the `DatePickerFor(m=>m.P
6868
public DateTime MyDateTimeProperty{ get; set; }
6969
```
7070

71+
{% if site.core %}
72+
## DateOnly compatability
73+
74+
As of the 2024 Q4 Release the {{ site.framework }} DatePicker is compatible with the [`DateOnly`](https://learn.microsoft.com/en-us/dotnet/api/system.dateonly?view=net-8.0) type. Following this release you can also set the value of the component to a `DateOnly` property:
75+
76+
```HtmlHelper
77+
@(Html.Kendo().DatePicker().Name("datePicker").Value(new DateOnly(2024,5,6)))
78+
```
79+
```TagHelper
80+
<kendo-datepicker name="datePicker" value="new DateOnly(2024,5,6)">
81+
</kendo-datepicker>
82+
```
83+
{% endif %}
84+
7185
## Functionality and Features
7286

7387
|Feature|Description|

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,24 @@ The following example demonstrates the basic configuration for the DateRangePick
4848
@[template](/_contentTemplates/core/declarative-initialization-note.md#declarative-initialization-note)
4949
{% endif %}
5050

51+
{% if site.core %}
52+
## DateOnly compatability
53+
54+
As of the 2024 Q4 Release the {{ site.framework }} DateRangePicker is compatible with the [`DateOnly`](https://learn.microsoft.com/en-us/dotnet/api/system.dateonly?view=net-8.0) type. Following this release you can also set the `Start` and `End` range of the component to a `DateOnly` property:
55+
56+
```HtmlHelper
57+
@(Html.Kendo().DateRangePicker()
58+
.Name("daterangepicker")
59+
.Range(r => r.Start(new DateOnly(2024,5,6)).End(new DateOnly(2024,5,6).AddDays(10))) // Sets the range of the DateRangePicker.
60+
)
61+
```
62+
```TagHelper
63+
<kendo-daterangepicker name="daterangepicker">
64+
<range start="new DateOnly(2024,5,6)" end="new DateOnly(2024,5,6).AddDays(10)"/>
65+
</kendo-daterangepicker>
66+
```
67+
{% endif %}
68+
5169
## Functionality and Features
5270

5371
| Feature | Description |

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,20 @@ The TimePicker component respects DataAnnotation attributes when using the `Time
8484
[Range(typeof(DateTime), minimum: "01/01/2023 03:00:00 AM", maximum: "12/31/2023 10:00:00 AM")]
8585
public DateTime MyDateTimeProperty{ get; set; }
8686
```
87-
87+
88+
{% if site.core %}
89+
## TimeOnly compatability
90+
91+
As of the 2024 Q4 Release the {{ site.framework }} TimePicker is compatible with the [`TimeOnly`](https://learn.microsoft.com/en-us/dotnet/api/system.timeonly?view=net-8.0) type. Following this release you can also set the value of the component to a `TimeOnly` property:
92+
93+
```HtmlHelper
94+
@(Html.Kendo().TimePicker().Name("timeOnly").Value(new TimeOnly(10,20,30)))
95+
```
96+
```TagHelper
97+
<kendo-timepicker name="timeOnly" value="new TimeOnly(10,20,30)"></kendo-timepicker>
98+
```
99+
{% endif %}
100+
88101
## Functionality and Features
89102

90103
|Feature|Description|

0 commit comments

Comments
 (0)