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

The error message(Exception) could not be handled with Scheduler OnActionFailure events due to having empty args value for the below sample code.

@using Syncfusion.Blazor
@using Syncfusion.Blazor.Schedule
@using Syncfusion.Blazor.Data

<SfSchedule TValue="AppointmentData" Width="100%" Height="100%">
<ScheduleEvents TValue="AppointmentData" OnActionFailure="@((args) => { ActionFailure(args); })"></ScheduleEvents>
@<ScheduleEvents TValue="Exception" OnActionFailure="@((args) => { ActionFailureExceptionHandler(args); })"></ScheduleEvents>@
<ScheduleEventSettings TValue="AppointmentData">
<SfDataManager AdaptorInstance="@typeof(CustomAdaptor)" Adaptor="Adaptors.CustomAdaptor"></SfDataManager>
</ScheduleEventSettings>
</SfSchedule>

@code{
public void ActionFailure(Syncfusion.Blazor.Schedule.ActionEventArgs<AppointmentData> args)
{
//Shows empty object appointmentdata (No info about exception)
Console.Error.WriteLine(args);
}
public class AppointmentData
{
public int Id { get; set; }
public string Subject { get; set; }
public string Location { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public string Description { get; set; }
public bool IsAllDay { get; set; }
public string RecurrenceRule { get; set; }
public string RecurrenceException { get; set; }
public Nullable<int> RecurrenceID { get; set; }
}
public void ActionFailureHandler(Syncfusion.Blazor.Schedule.ActionEventArgs<Exception> args)
{
//Shows empty object appointmentdata (Get my exception)
Console.Error.WriteLine(args);
}
public class CustomAdaptor : DataAdaptor
{
public async override Task<object>
ReadAsync(DataManagerRequest dataManagerRequest, string key = null)
{

await Task.Delay(100);
throw new Exception("Throw my Exception");

return null;
}
}
}