Hi. working with the Blazor Scheduler, and VERY closely following the example, mostly.
The scheduler shows, all fine, but when I added the code for the OnSlotSelect it tells me it can't find my 'AddReservationPage'. It doesn't throw an error, in fact it does nothing. I can set a breakpoint at the DialogService call and can view the EventArgs, but when I hit 'continue', it does - but nothing as far as the add screen shows.
async Task OnSlotSelect(SchedulerSlotSelectEventArgs args) { Reservation data = await DialogService.OpenAsync("Add Reservation", new Dictionary { { "ResDate", args.Start }, { "ResEndDate", args.End } }); if (data != null) { reservations.Add(data); // Either call the Reload method or reassign the Data property of the Scheduler await ResEvents.Reload(); } }
My AddReservationPage (at least part of it) looks like this:
@page "/AddReservationPage" @using MauiApp1.Data; @using Radzen.Blazor; @inject Radzen.DialogService DialogService
Where "AddReservation" is my data model.I followed the instructions on installing Radzen and have everything else in the program.cs, .css, etc.where it said to put it.
Why is it telling me it can't find the AddReservationspage?