I can’t get a Radzen click event to work:
<RadzenButton Text="Get Categories from Excel" Click="() => GetCategoriesExcel()" />
I’ve figured out this has something to do with render settings in .net 8.0. This is what it looks like I need to add to my program file:
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
app.MapRazorComponents<App>().AddInteractiveServerRenderMode();
My app doesn’t seem to be recognizing builder.Services.AddRazorComponents(). Am I missing a package maybe? I tried adding Microsoft.Extensions.DependencyInjection but that didn’t work. I just get a CS1061 “‘type’ does not contain a definition for ‘name’ and no accessible extension method ‘name’ accepting a first argument of type ‘type’ could be found (are you missing a using directive or an assembly reference?).” on AddRazorComponents.