I created a new project https://blazor.syncfusion.com/documentation/toast/getting-started#add-blazor-toast-component
I upgraded 22.2.0.36 today
then toast doesn't show
After rolling back to 20.1.0.61 everything works fine
Same here. Rolled back after seeing this and it shows fine now.
Hi All
Greetings from Syncfusion support.
We were unable to reproduce your reported issue at our end using 20.2.0.36. Please find the below sample and video for your reference.
Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/V_772022_193725572879641
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SfToast-1084242682
We suggest deleting the bin and obj folders before opening and running your application.
If you still face a problem, can you please clear the cache and run the sample using an incognito window, or else please share your application?
Regards,
Buvana S
Hi AD MIN,
Thanks for sharing your sample.
We have checked your shared sample. You missed out on installing Syncfusion.Blazor.Themes nuget to refer the Syncfusion styles. So, we suggest installing Syncfusion.Blazor.Themes nuget to solve your problem. Please see the below video and sample for your reference.
Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/V_782022_111214-1032383443
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion-1712111418
If still issue occurred on your side, can you please clear the Syncfusion NuGet cache(NuGet package location: C:\Users\<UserName>\.nuget\packages) and then install and check.
Please refer the below link to clear NuGet cache,
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Kindly try with the above information and get back to us if you have any queries.
Regards,
Buvana S
Your solution works great in new projects,
But it still doesn't show in my previous project,
Roll back to the previous version again and everything works fine
@layout MyLoginLayout
@inject ToastService ToastService
showtoast(ToastService, "faild", "test");
public void showtoast(ToastService toa, string title, string content)
{
toa.ShowToast(new ToastOption()
{
Title = title,
Content = content
});
}
Hi AD MIN,
We were unable to reproduce your reported issue at our end. We suspect that the issue was occurred due to the cache problem. Could you please refer the styles and scripts in the application as below if you are referring scripts or styles from CDN or static web assets.
|
<link rel="stylesheet" rel='nofollow' href="_content/Syncfusion.Blazor/styles/bootstrap5.css?v20.2.36"
/>
|
Kindly try with the above information. If possible, can you please share a video demo of your issue? Are you facing any console errors? Meanwhile, we will try to reproduce your reported issue at our end with different machines.
Regards,
Buvana S