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
and/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 |
---|---|
|
|
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
UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
---|---|
|
|
|
|
|
|
|
|
|
|
Async Method Suffix
Added an Async
suffix to the name of asynchronous methods.
UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
---|---|
|
|
|
|
Component Changes
This section describes changes per component.
Button
- Renamed the
Hidden
parameter toVisible
.
UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
---|---|
|
|
Carousel
- Removed the
OnTimerTick
method.
Drawer
- Changed the values in the
DrawerPosition
enum fromLeft
andRight
toStart
andEnd
.
UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
---|---|
|
|
DropDownList
- Removed the
DefaultItem
parameter, use theDefaultText
parameter instead.
Form
- The Form columns can have different widths
Gantt
- Renamed
<GanttToolBar>
to<GanttToolBarTemplate>
.
Grid
-
FilterRow uses
CompositeFilterDescriptor
instead ofFilterDescriptor
. - Removed default filter descriptors in the state when the Grid
FilterMode
is set toFilterMenu
. - Removed the
Primary
parameter from<GridCommandButton>
. Use theThemeColor
parameter instead. - Removed
ExcelExportableColumn
in favor ofGridExcelExportColumn
for Excel export andGridCsvExportColumn
for CSV export. - The successor of
ExcelExportableColumn
for CSV export(GridCsvExportColumn
) does not haveNumberFormat
andWidth
. - Renamed
<GridToolBar>
to<GridToolBarTemplate>
.
MaskedTextBox
- Changed the signature of the
PlaceHolder
parameter toPlaceholder
.
UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
---|---|
|
|
TextArea
- Changed the signature of the
PlaceHolder
parameter toPlaceholder
.
UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
---|---|
|
|
TextBox
- Changed the signature of the
PlaceHolder
parameter toPlaceholder
.
UI for Blazor 3.7.0 | UI for Blazor 4.0.0 |
---|---|
|
|
Toolbar
- Changed the default value of the
Adaptive
parameter fromfalse
totrue
.
TreeList
- Removed default filter descriptors in the state when the TreeList
FilterMode
is set toFilterMenu
. - Removed
Primary
parameter from the<TreeListCommandButton>
. - Renamed the
<TreeListToolBar>
to<TreeListToolBarTemplate>
.