Breaking Changes in 4.0.0
Common Changes
This section applies to changes to multiple components.
Icons
Some built-in icons have been renamed. See the full list of changes in article New Icon Names in Telerik UI for Blazor 4.0.
Icon
The Icon parameter type changes from string to object to facilitate the addition of Telerik Font and Svg Icons.
To use built-in Telerik icons, register the new icon namespaces - Telerik.FontIcons or Telerik.SvgIcons.
To define custom icon classes inline, use Icon="@( "my-icon-class" )".
To use Telerik font icons with UI for Blazor 4.6.0 and above, register font-icons.css.
| UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
|---|---|
|
RAZOR
|
RAZOR
|
ImageUrl
Removed the ImageUrl parameter, use the Icon parameter instead.
List of affected components:
- Breadcrumb
- Button
- ButtonGroup
- ColorPicker
- ContextMenu
- Drawer
- Menu
- PanelBar
- SplitButton
- Stepper
- ToggleButton
- TreeView
- Wizard
IconClass
Removed the IconClass parameter, use the Icon parameter instead.
List of affected components:
- Breadcrumb
- Button
- ButtonGroup
- ColorPicker
- ContextMenu
- Drawer
- Menu
- PanelBar
- SplitButton
- Stepper
- ToggleButton
- TreeView
- Wizard
SpriteClass
Removed the SpriteClass parameter, use the Icon parameter instead.
List of affected components:
Shape Parameter
Removed the Shape parameter from:
Stretched enum Value
- Card Actions
Layout - Dialog Action
ButtonsLayout - Grid popup edit form
ButtonsLayout - Scheduler popup edit form
ButtonsLayout - TreeList popup edit form
ButtonsLayout
Stretched enum value in UI for Blazor up to version 3.7.0 and after version 4.0.0
| UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
|---|---|
|
RAZOR
RAZOR
RAZOR
RAZOR
RAZOR
|
RAZOR
RAZOR
RAZOR
RAZOR
RAZOR
|
Async Method Suffix
Added an Async suffix to the name of asynchronous methods.
Method signatures in UI for Blazor up to version 3.7.0 and after version 4.0.0
| UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
|---|---|
|
C#
C#
|
C#
C#
|
Component Changes
This section describes changes per component.
Button
- Renamed the
Hiddenparameter toVisible.
Visible parameter in UI for Blazor up to version 3.7.0 and after version 4.0.0
| UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
|---|---|
|
RAZOR
|
RAZOR
|
Carousel
- Removed the
OnTimerTickmethod.
Drawer
- Changed the values in the
DrawerPositionenum fromLeftandRighttoStartandEnd.
DrawerPosition enum values in UI for Blazor up to version 3.7.0 and after version 4.0.0
| UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
|---|---|
|
RAZOR
|
RAZOR
|
DropDownList
- Removed the
DefaultItemparameter, use theDefaultTextparameter instead.
Form
- The Form columns can have different widths
Gantt
- Renamed
<GanttToolBar>to<GanttToolBarTemplate>.
Grid
- FilterRow uses
CompositeFilterDescriptorinstead ofFilterDescriptor. - Removed default filter descriptors in the state when the Grid
FilterModeis set toFilterMenu. - Removed the
Primaryparameter from<GridCommandButton>. Use theThemeColorparameter instead. - Removed
ExcelExportableColumnin favor ofGridExcelExportColumnfor Excel export andGridCsvExportColumnfor CSV export. - The successor of
ExcelExportableColumnfor CSV export(GridCsvExportColumn) does not haveNumberFormatandWidth. - Renamed
<GridToolBar>to<GridToolBarTemplate>.
MaskedTextBox
- Changed the signature of the
PlaceHolderparameter toPlaceholder.
Placeholder parameter in UI for Blazor up to version 3.7.0 and after version 4.0.0
| UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
|---|---|
|
RAZOR
|
RAZOR
|
TextArea
- Changed the signature of the
PlaceHolderparameter toPlaceholder.
Placeholder parameter in UI for Blazor up to version 3.7.0 and after version 4.0.0
| UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
|---|---|
|
RAZOR
|
RAZOR
|
TextBox
- Changed the signature of the
PlaceHolderparameter toPlaceholder.
Placeholder parameter in UI for Blazor up to version 3.7.0 and after version 4.0.0
| UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
|---|---|
|
RAZOR
|
RAZOR
|
Toolbar
- Changed the default value of the
Adaptiveparameter fromfalsetotrue.
TreeList
- Removed default filter descriptors in the state when the TreeList
FilterModeis set toFilterMenu. - Removed
Primaryparameter from the<TreeListCommandButton>. - Renamed the
<TreeListToolBar>to<TreeListToolBarTemplate>.