I have a Blazor application with some Radzen components.
I want to add some RadzenButton dynamically in c# code (not html). I use builder.AddAttribute method to add Icon, Style and so on to the button without any problem. But when use builder.AddAttribute for "Click" event, I get this error on runtime:
Unhandled exception rendering component: Unable to set property 'Click' on object of type 'Radzen.Blazor.RadzenButton'. The error was: Specified cast is not valid.