Skip to main content
A newer version of this page is available. .

Blazor Components are Rendered Incorrectly

DevExpress Blazor components can be rendered incorrectly in the following cases:

  • DevExpress resources are not registered in a project. Refer to Register DevExpress Resources.

  • The application’s Bootstrap version does not match the theme.

  • You used Visual Studio’s built-in Blazor project template to create your project. CSS rules for the standard NavMenu component (NavMenu.razor.css) match certain Bootstrap classes, such as .nav-item. DevExpress Blazor components (DxTreeView, DxTabs, or DxMenu) may render incorrectly due to these conflicts. To resolve the issue, modify the CSS file and the NavMenu component. Use the techniques described in How to inspect CSS rules and How to implement CSS-related solutions for DevExpress components to determine which CSS rules cause this issue.

    Some classes from the site.css or app.css file (for example, .btn-primary, .btn-link) can affect the DxButton, DxToolbar components. To resolve this issue, modify rules for these classes.