Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello,

when i use the Menu Bar with a CustomItem class and try to use events,
i get following error when hover or click the menu.

I attach a testproject. 

Greetings 

Martin 


System.InvalidCastException: Unable to cast object of type 'Microsoft.AspNetCore.Components.EventCallback`1[Syncfusion.Blazor.Navigations.OpenCloseMenuEventArgs`1[SyncfusionBlazorApp_Menue_Test.Pages.MenuBarFeatures+CustomMenuItem]]' to type 'Microsoft.AspNetCore.Components.EventCallback`1[Syncfusion.Blazor.Navigations.OpenCloseMenuEventArgs`1[Syncfusion.Blazor.Navigations.MenuItemModel]]'.

   at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)

   at Syncfusion.Blazor.Navigations.SfMenu`1.OpenedHandler[T](OpenCloseMenuEventArgs`1 e)

   at Syncfusion.Blazor.Navigations.SfMenu`1.b__71_15(OpenCloseMenuEventArgs`1 e)

   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)

   at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)

   at Syncfusion.Blazor.Navigations.SfContextMenu`1.OnAfterRenderAsync(Boolean firstRender)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost: Error: Unhandled exception in circuit '6n2LRIsGQkN5cz4lZ50I92nWq8XGy7XpzaOQQxS-zuk'.