# Migrating from Radzen.Blazor 2.x to 3.x

**URL:** <https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353>\
**Category:** Radzen.Blazor Components\
**Created:** [January 19, 2021, 9:16am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353 "2021-01-19T09:16:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 19, 2021, 9:16am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/1 "2021-01-19T09:16:59Z")

</div>

We have just released Radzen.Blazor 3.0! The big change that required a major version update is changing the CSS prefix used by all Radzen Blazor components from `ui-*` to `rz-`. This means that if you have some custom CSS which overrides Radzen CSS it will most probably no longer work until you update it. For example

OLD:

```auto
.ui-tabview {
}

```

NEW:

```auto
.rz-tabview {
}

```

## [Full List of Changes](#changes)

- `.ui-` is now `.rz-`
- `.pi` is now `.rzi` also `.pi-` is `.rzi-`
- `.card` is now `.rz-card`
- `.fa` and `.material-icons` is now also `.rzi`
- `.menu` is now `.rz-menu`
- `.navigation-item` is now `.rz-navigation-item` and `.navigation-item-` is `.rz-navigation-item-`
- `.panel-menu` is now `.rz-panel-menu`
- `.context-menu` is now `.rz-context-menu`
- `.link` is now `.rz-link`
- `.profile-menu` is now `.rz-profile-menu`
- `.textbox` is now `.rz-textbox`
- `.textarea` is now `.rz-textarea`

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 19, 2021, 9:17am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/2 "2021-01-19T09:17:12Z")

</div>



---

<div class="post-metadata">

**Author:** ![Kodestuen](https://forum.radzen.com/user_avatar/forum.radzen.com/kodestuen/32/4356_2.png) [@Kodestuen](https://forum.radzen.com/u/Kodestuen)\
**Post date:** [January 19, 2021, 12:43pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/3 "2021-01-19T12:43:41Z")

</div>

Just updated and no problems so far 🙂

Nice work!

---

<div class="post-metadata">

**Author:** ![KlinkerDJ](https://forum.radzen.com/letter_avatar_proxy/v4/letter/k/e99b99/32.png) [@KlinkerDJ](https://forum.radzen.com/u/KlinkerDJ)\
**Post date:** [January 20, 2021, 10:40am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/4 "2021-01-20T10:40:42Z")

</div>

"Custom Radzen Theme" includes the Humanistic theme as well, right? I upgraded our test enviroment and have quite a few (small) css bugs. If not, I can make a seperate topic later.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [January 20, 2021, 2:09pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/5 "2021-01-20T14:09:08Z")

</div>

> [@KlinkerDJ](#):
>
> Custom Radzen Theme

This is professional feature of Radzen Studio available for subscribers:

> **[Theme Customization](https://www.radzen.com/documentation/theme-customization)**
>
> Visually customize the Radzen theme to match your branding

 ![image](https://forum.radzen.com/uploads/default/original/2X/a/acaaa1e32fcce410c9a372633f4aa9844a2dd182.jpeg)

---

<div class="post-metadata">

**Author:** ![kim](https://forum.radzen.com/user_avatar/forum.radzen.com/kim/32/9988_2.png) [@kim](https://forum.radzen.com/u/kim)\
**Post date:** [January 20, 2021, 6:33pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/6 "2021-01-20T18:33:20Z")

</div>

What can be done to safely upgrade projects that include the .css in the code generation ignore list?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 20, 2021, 7:00pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/7 "2021-01-20T19:00:51Z")

</div>

It would probably be easier to apply your customizations from scratch. Alternatively you can keep them in a separate CSS file so you can still receive upgrades and fixes to the themes.

If this is not an option you will have to change the prefixes of the css classes manually -

- `.ui-` is now `.rz-`
- `.pi` is now `.rzi` also `.pi-` is `.rzi-`
- `.card` is now `.rz-card`
- `.fa` is now also `.rzi`
- `.menu` is now `.rz-menu`
- `.navigation-item` is now `.rz-navigation-item` and `.navigation-item-` is `.rz-navigation-item-`
- `.panel-menu` is now `.rz-panel-menu`
- `.context-menu` is now `.rz-context-menu`
- `.link` is now `.rz-link`

---

<div class="post-metadata">

**Author:** ![kim](https://forum.radzen.com/user_avatar/forum.radzen.com/kim/32/9988_2.png) [@kim](https://forum.radzen.com/u/kim)\
**Post date:** [January 20, 2021, 7:11pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/8 "2021-01-20T19:11:18Z")

</div>

I tried your latest suggestion. After some Ctrl+H in VSCode, all the prefixes were updated and most things are looking as they used to. But some components are looking off still, so I'll try and manually fix them.

UPDATE:  
Here are more prefix replacements:

- `.profile-menu` is now `.rz-profile-menu`
- `.textbox` is now `.rz-textbox`
- `.textarea` is now `.rz-textarea`

I'll keep this list updated.

---

<div class="post-metadata">

**Author:** ![cedpromedical](https://forum.radzen.com/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@cedpromedical](https://forum.radzen.com/u/cedpromedical)\
**Post date:** [January 22, 2021, 7:45am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/9 "2021-01-22T07:45:25Z")

</div>

Hi, from the description Radzen 3 looks like a miracle. exactly what we needed. where it's possible to download it ? so far in the radzen website I see only the download button for the release 2.x

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [January 22, 2021, 7:47am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/10 "2021-01-22T07:47:41Z")

</div>

Hi @cedpromedical,

Radzen 3.0 is still not available for download. More info can be found here:

> **[A new era for Blazor development](https://www.radzen.com/blog/a-new-era-for-blazor-development/)**
>
> Revealing the future installment of Radzen.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 22, 2021, 7:49am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/11 "2021-01-22T07:49:36Z")

</div>

Just to clarify:

- Radzen.Blazor is the Radzen Blazor component library. It has a new version 3.0.0.
- Radzen 3.0 is the new major version of Radzen (our IDE premium product) which is still in development.

Radzen.Blazor is not the same as Radzen.

---

<div class="post-metadata">

**Author:** ![cedpromedical](https://forum.radzen.com/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@cedpromedical](https://forum.radzen.com/u/cedpromedical)\
**Post date:** [January 22, 2021, 8:15am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/12 "2021-01-22T08:15:14Z")

</div>

Thank you for the information. It seems that I was confused as the first time that I took the Metro in Sofia 😃 I look forward to try and buy Radzen 3.0. it looks exactly what my company need for software development.

---

<div class="post-metadata">

**Author:** ![towall](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/779978/32.png) [@towall](https://forum.radzen.com/u/towall)\
**Post date:** [January 22, 2021, 12:25pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/13 "2021-01-22T12:25:44Z")

</div>

Don't know if this is intended or not, but the material-icons definition is missing in the new Radzen CSS. So if you have used material icons like this, it will not work any more:

` <i class="material-icons">local_shipping</i>`

2.x CSS:

 ![radzen2.x](https://forum.radzen.com/uploads/default/original/2X/0/036e8951369d5f92872e234edb5afd1b5ad27844.jpeg)

3.0 CSS

 ![radzen3](https://forum.radzen.com/uploads/default/original/2X/c/c01a0424aac42994bf4b5a8546cf9ae4ca325321.jpeg)

I fixed this by replacing material-icons with rzi:  
` <i class="rzi">local_shipping</i>`

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 22, 2021, 12:38pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/14 "2021-01-22T12:38:35Z")

</div>

Indeed `.material-icons` is now too `.rzi`. Will update my first post to include the changes.

---

<div class="post-metadata">

**Author:** ![kim](https://forum.radzen.com/user_avatar/forum.radzen.com/kim/32/9988_2.png) [@kim](https://forum.radzen.com/u/kim)\
**Post date:** [January 22, 2021, 8:28pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/15 "2021-01-22T20:28:24Z")

</div>

Why does this text isn't rendering as an Icon?

 ![image](https://forum.radzen.com/uploads/default/original/2X/9/9c1958b0b3f2c0e80e8d64a378f58bb07990cd6b.png)

```auto
.rz-sortable-column .rzi-sort:before {
  content: 'sort';
}
```

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 23, 2021, 7:06am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/16 "2021-01-23T07:06:30Z")

</div>

The `font-family` CSS attribute is probably missing. Here is how it looks with the default themes:

 ![image](https://forum.radzen.com/uploads/default/original/2X/6/6b0e3100c5853efcf9bfac795fff2a2de1c5cc20.png)

---

<div class="post-metadata">

**Author:** ![BlazorGeek](https://forum.radzen.com/letter_avatar_proxy/v4/letter/b/f4b2a3/32.png) [@BlazorGeek](https://forum.radzen.com/u/BlazorGeek)\
**Post date:** [January 27, 2021, 12:22pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/17 "2021-01-27T12:22:02Z")

</div>

Row sizing on RadzenGrid before upgrade

 ![image](https://forum.radzen.com/uploads/default/original/2X/0/0a136dca8cbddf4f245846d1b0e1a62b78c0aad0.png)

Row sizing on RadzenGrid after upgrade.

 ![image](https://forum.radzen.com/uploads/default/original/2X/c/c8b627ce02a2efabdaca3d1d01a9423da04f3d1c.png)

Padding seems to have increased. Is there a fix?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 27, 2021, 2:47pm UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/18 "2021-01-27T14:47:37Z")

</div>

No, we haven't increased the padding - only the CSS class names have changed. You can check our online demos for a reference.

---

<div class="post-metadata">

**Author:** ![t.leung](https://forum.radzen.com/user_avatar/forum.radzen.com/t.leung/32/4407_2.png) [@t.leung](https://forum.radzen.com/u/t.leung)\
**Post date:** [January 28, 2021, 6:56am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/19 "2021-01-28T06:56:03Z")

</div>

Can I see what's new of Radzen.Blazor 3.x?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [January 28, 2021, 7:08am UTC](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353/20 "2021-01-28T07:08:03Z")

</div>

All release notes are here:

> **[Releases · radzenhq/radzen-blazor](https://github.com/radzenhq/radzen-blazor/releases)**
>
> The home of the Radzen Blazor components. Contribute to radzenhq/radzen-blazor development by creating an account on GitHub.

[Next page](https://forum.radzen.com/t/migrating-from-radzen-blazor-2-x-to-3-x/6353.md?page=2)
