After upgrading our project from Telerik UI for Blazor v9 to v10, some of our pages started throwing the following error:
Unhandled exception rendering component: A Telerik component in the requested view requires a TelerikRootComponent in MainLayout or a parent component.
Read more at: https://docs.telerik.com/blazor-ui/knowledge-base/common-component-requires-telerikrootcomponent
This is unexpected because:
* All pages in our application use the same MainLayout.
* The MainLayout.razor already contains a <TelerikRootComponent> at the top level.
* Nothing else was changed in the project except the Telerik package upgrade (no modifications in layouts or routing).
The error appears only on some pages, while other pages using the exact same layout work fine.
Questions / Issues:
1) Is this a breaking change or regression introduced in v10?
2) Are there any known scenarios where a Telerik component would fail to detect the existing TelerikRootComponent in the MainLayout?
3) Could there be an internal change in v10 causing certain components (e.g. Grid, Window, DropDowns, etc.) to require a different layout inheritance?
Environment:
* Blazor Server (.NET 9)
* Telerik UI for Blazor v10.x (upgraded from v9.x)
* MainLayout.razor includes <TelerikRootComponent> wrapping the layout body.
Expected behavior:
All components should work correctly as they did in v9, since the TelerikRootComponent is already present in the main layout.
Could you please advise if this is a bug or if there is an additional migration step required when upgrading from v9 to v10?
Thank you.