|
| 1 | +--- |
| 2 | +title: Telerik.Blazor.Components.TelerikWindow does not have a property matching the name Centered |
| 3 | +description: Learn how to address the error thrown by Blazor Native Viewer Object of type 'Telerik.Blazor.Components.TelerikWindow' does not have a property matching the name 'Centered' |
| 4 | +type: how-to |
| 5 | +page_title: Blazor Native Viewer throws Object of type 'Telerik.Blazor.Components.TelerikWindow' does not have a property matching the name 'Centered' |
| 6 | +meta_title: Blazor Native Viewer throws Object of type 'Telerik.Blazor.Components.TelerikWindow' does not have a property matching the name 'Centered' |
| 7 | +slug: telerikwindow-does-not-have-property-matching-name-centered |
| 8 | +tags: reporting,blazor-native-viewer,error,telerik-ui-for-blazor,telerikwindow,centered |
| 9 | +res_type: kb |
| 10 | +ticketid: 1693434 |
| 11 | +--- |
| 12 | + |
| 13 | +## Environment |
| 14 | + |
| 15 | +<table> |
| 16 | + <tbody> |
| 17 | + <tr> |
| 18 | + <td> Product </td> |
| 19 | + <td> Reporting Blazor Native Viewer </td> |
| 20 | + </tr> |
| 21 | + <tr> |
| 22 | + <td> Version </td> |
| 23 | + <td> Current </td> |
| 24 | + </tr> |
| 25 | + </tbody> |
| 26 | +</table> |
| 27 | + |
| 28 | +## Description |
| 29 | + |
| 30 | +I upgraded my Telerik Reporting project, which uses the [Blazor Native Viewer]({%slug telerikreporting/embedding-reports/display-reports-in-applications/web-application/native-blazor-report-viewer/overview%}). After the upgrade, I encountered the following error: |
| 31 | + |
| 32 | +```` |
| 33 | +System.InvalidOperationException: Object of type 'Telerik.Blazor.Components.TelerikWindow' does not have a property matching the name 'Centered'. |
| 34 | + at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.ThrowForUnknownIncomingParameterName(Type targetType, String parameterName) |
| 35 | + at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target) |
| 36 | + at Telerik.Blazor.Components.TelerikWindow.SetParametersAsync(ParameterView parameters) |
| 37 | + at Microsoft.AspNetCore.Components.Rendering.ComponentState.SupplyCombinedParameters(ParameterView directAndCascadingParameters) |
| 38 | +```` |
| 39 | + |
| 40 | +This error occurs because the Blazor Native Viewer depends on version `7.1.0` of the Telerik UI for Blazor components and tries to access the `Centered` parameter of the TelerikWindow component. This parameter was removed in version `9.0.0`. Compatibility issues arise due to the dependency mismatch. |
| 41 | + |
| 42 | +## Solution |
| 43 | + |
| 44 | +To resolve this issue, choose one of the following approaches: |
| 45 | + |
| 46 | +### Downgrade Telerik UI for Blazor |
| 47 | + |
| 48 | +Downgrade the `Telerik.UI.for.Blazor` package in your project to version `7.1.0` to ensure compatibility between the Blazor Native Viewer and the Telerik UI for Blazor components. |
| 49 | + |
| 50 | +### Switch to Blazor Report Viewer |
| 51 | + |
| 52 | +Use the [Blazor HTML5 Report Viewer]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/blazor-report-viewer/overview%}) instead of the Blazor Native Viewer. The Blazor Report Viewer acts as a wrapper for the [HTML5 Report Viewer]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/overview%}) and does not depend on Telerik UI for Blazor components. |
| 53 | + |
| 54 | +### Wait for Updated Dependencies |
| 55 | + |
| 56 | +The Reporting team plans to update the `Telerik.UI.for.Blazor` dependency in the Q3 2025 release. Monitor the release notes for updates addressing this issue. |
| 57 | + |
| 58 | +## See Also |
| 59 | + |
| 60 | +* [Breaking Changes in 9.0.0: Window](https://www.telerik.com/blazor-ui/documentation/upgrade/breaking-changes/9-0-0#window) |
| 61 | +* [Forum: TelerikWindow does not have a property matching the name 'Centered'](https://www.telerik.com/forums/telerik-blazor-components-telerikwindow-does-not-have-a-property-matching-the-name-centered?_gl=1*1ky0ygo*_ga_9JSNBCSF54*czE3NTMwODAxMjUkbzEzJGcxJHQxNzUzMDg2ODQzJGo3JGwwJGgw) |
| 62 | +* [Feature Request: Native Blazor Viewer Throws Error Related to 'Centered'](https://feedback.telerik.com/reporting/1693306-native-blazor-viewer-throws-telerik-blazor-components-telerikwindow-does-not-have-a-property-matching-the-name-centered?_gl=1*18c1v11*_gcl_au*MTU2NDQxNzkuMTc1MzA4NzAzMQ..*_ga*MzAyODQwMTI5LjE3NTMwODcwMzE.*_ga_9JSNBCSF54*czE3NTMwODAxMjUkbzEzJGcxJHQxNzUzMDg3MzA3JGozMyRsMCRoMA..) |
| 63 | +* [HTML5 Report Viewer Overview]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/overview%}) |
0 commit comments