The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
new ToastModel{ Title = "Warning!", Content="There was a problem with your network connection.", CssClass="e-toast-warning", Icon="e-warning toast-icons" },
new ToastModel{ Title = "Success!", Content="Your message has been sent successfully.", CssClass="e-toast-success", Icon="e-success toast-icons" },
new ToastModel{ Title = "Error!", Content="A problem has been occurred while submitting your data.", CssClass="e-toast-danger", Icon="e-error toast-icons" },
new ToastModel{ Title = "Information!", Content="Please read the comments carefully.", CssClass="e-toast-info", Icon="e-info toast-icons" }
};
private async Task InfoBtnOnClick()
{
await this.ToastObj.Show(Toast[3]);
}
private async Task WarnBtnOnClick()
{
await this.ToastObj.Show(Toast[0]);
}
private async Task SuccessBtnOnClick()
{
await this.ToastObj.Show(Toast[1]);
}
private async Task ErrorBtnOnClick()
{
await this.ToastObj.Show(Toast[2]);
}
private async Task HideBtnOnClick()
{
await this.ToastObj.Hide("All");
}
}
JPJeevakanth Palaniappan Syncfusion Team September 30, 2020 02:22 PM UTC
Hi Dingo,
Greetings from Syncfusion support.
We have validated your query and we suspect that you need to show the toast message while performing CRUD operation. You can achieve your requirement by either using the OnToolbarClick event or OnActionBegin event. In OnToolbarClick event based on the args.Item.Id you can show the corresponding toast message and in OnActionBegin event, based on the args.RequestType, you can show the messages. Please refer the below documentation link for further reference.