Hybrid WPF Blazor fails on DatePicker field

1 Answer 24 Views
DatePicker
JKattestaart
Top achievements
Rank 1
JKattestaart asked on 28 Feb 2024, 11:59 AM

Hi,

The DatePicker gives a runtime error on Hybrid (does works on blazor server)

<TelerikDatePicker Value="@entity.OrderDate.Date" Format="dd-MM-yyyy" ValueChanged="@((DateTime d) => UpdateDateTimeOffsetField(d))" />

If i remove the datapicker tag, there is no problem. I suspect it has something to do with the hybrid stuff

Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.2\System.Collections.Immutable.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Base.ErrorHandler:HandleError: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.Exception: A Telerik component on the requested view requires a TelerikRootComponent to be added to the root of the MainLayout component of the app. Read more at: https://docs.telerik.com/blazor-ui/getting-started/what-you-need#project-configuration
   at Telerik.Blazor.Components.RootComponent.TelerikRootComponentFragment.OnInitializedAsync()

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Mar 2024, 07:31 AM

Hi John,

Apparently the link in the exception message needs a small update and we will do this in the next release.

Otherwise, is the exception message unclear?

A Telerik component on the requested view requires a TelerikRootComponent to be added to the root of the MainLayout component of the app. Read more at:

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
DatePicker
Asked by
JKattestaart
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or