Build PWAs with Blazor WebAssembly Using Syncfusion| Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (175).NET Core  (29).NET MAUI  (208)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (41)Black Friday Deal  (1)Blazor  (220)BoldSign  (15)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (67)Flutter  (133)JavaScript  (221)Microsoft  (119)PDF  (81)Python  (1)React  (101)Streamlit  (1)Succinctly series  (131)Syncfusion  (920)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (37)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (151)Chart  (132)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (633)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (41)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (508)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (11)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (597)What's new  (333)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Build PWAs with Blazor WebAssembly Using Syncfusion Blazor Components [Webinar Show Notes]

Build Progressive Web Apps with Blazor WebAssembly Using Syncfusion Blazor Components [Webinar Show Notes]

This blog provides show notes for our July 28, 2020 webinar, “Build PWAs with Blazor WebAssembly Using Syncfusion Components,” hosted by Syncfusion product manager Sridhar Narasimhan. A recording of the webinar is embedded below. A transcript of the webinar Q&A segment is available at the end of this blog post.

Introduction

This webinar will cover the following topics:

  • What’s new in Syncfusion’s Blazor suite for the 2020 Volume 2 release, including components that have moved from preview to production status.
  • Updates to Syncfusion Essential JS 2 suites.
  • Breaking changes in the Syncfusion Blazor suite.
  • How to build a simple to-do progressive web application with ASP.NET Core-hosted Blazor WebAssembly using Syncfusion Blazor components.

What’s New in Blazor for 2020 Volume 2

Now let’s go into more detail about what’s new in our Blazor suite:

  • Compatibility support for .NET 5.0 preview 6.
  • New components move from preview to production:
    • Card
    • Progress Bar
  • New Scheduler features:
    • Enhanced virtual scrolling that helps users load multiple resources with a template.
    • Inline editing that enables users to edit an appointment’s title by clicking on its subject and to create an appointment by clicking on a cell.
    • A horizontal year view that shows the annual view of the calendar.
    • Enhancements to the timeline year view to help configure multiple resources and enable automatic row height when adding appointments.
  • ProgressBar features:
    • Active progress bar allows users to actively indicate the status of progress.
    • Striped progress bar provides a striped appearance to the indicator.
    • Progress segments allow users to display the progress of a task is segments.
  • Word Processor features:
    • Form fields allow users to design forms using legacy form fields (text, check box, and drop-downs) in a Word document. Users can fill the forms as well.
    • Track changes allows users to view the changes made to a Word document by reviewers and accept or reject those changes.
  • PDF Viewer:
    • Ink annotations let you draw freehand on PDF files. You can move, resize, remove, or edit the appearance of the freehand drawing.
  • Pivot Table features:
    • Support for CSV data sources. CSV data can be transferred from a local file or web service or from an online downloadable link.
    • New chart types for the pivot chart:
      • Pie
      • Doughnut
      • Pyramid
      • Funnel

What’s New in Essential JS 2 for 2020 Volume 2

Now let’s go into more detail about what’s new in our Essential JS 2 suites.

  • New Gantt Chart features:
    • Indent and outdent on hierarchical levels of tasks.
    • Resource view advanced features:
      • Multi-taskbar support helps visualize multiple tasks assigned to each resource in a row when records are in a collapsed state.
      • Overallocation indicates when a resource is assigned two or more tasks that occur in the same date range.
    • New DataGrid features:
      • Autofill frozen rows and columns.
      • Filter operator selector in filter bar.
      • Frozen rows and columns with infinite scrolling.
    • New Spreadsheet features:
      • Conditional formatting allows you to format a cell or range of cells based on the conditions applied.
      • Aggregates let you quickly check the sum, average, and count for the selected cells or range in the sheet tab.

Breaking Changes in 2020 Volume 2

With the new release, there have been a couple of breaking changes introduced. For a full list, please visit the following link: https://blazor.syncfusion.com/documentation/release-notes/18.2.44/.

Build a To-Do PWA with Blazor WebAssembly Using Blazor Components

Procedure:

  1. Install the latest .NET Core SDK (3.1.300 or later):
    1. Windows: Visual Studio 2019 16.6.
    2. macOS: Visual Studio for Mac 8.6.
    3. Windows/macOS/Linux: Visual Studio Code with the C# extension.
  2. Create a new Blazor PWA.

  1. Create a model for to-do items.

  1. Import Syncfusion Blazor components into the application:
    1. Install the Syncfusion.Blazor NuGet package in the application using the NuGet Package Manager.
    2. You can add client-side style resources like a stylesheet from the NuGet package to the <head> element of the ~/wwwroot/index.html page in the Blazor WebAssembly app.
    3. Open the ~/Program.cs file and register the Syncfusion Blazor Service.

  1. Add the to-do component and code its functionality.
  2. Install the progressive web app.

  1. Hosting:
    1. Modify the base href in index.html: <base href=”/BlazorPWA/” />
    2. CRG: Custom script and CSS.
    3. Publish client project to a folder.
    4. Service worker asset changes: Remove static assets.
  2. Azure deployment:
    1. Move published folder to Azure.
    2. Configure map settings.
    3. Launch application.
  3. Testing offline support:
    1. Install the application from the browser for a native application effect.
    2. Set the throttle setting in the browser dev tools for offline mode.
    3. Refresh to see if the application loads in offline mode.

Conclusion

In this webinar, we took a tour of various changes in Syncfusion’s Blazor and Essential JS 2 tolls in 2020 Volume 2. Then, we built a progressive web application with ASP.NET Core-hosted Blazor WebAssembly using our Blazor components. We hope you enjoyed this webinar.

Recommended resources (related links):

Webinar Q&A

When you are deploying the application, which application should we deploy, server or client?
You should deploy the client application. For more information, refer to this link: https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/?view=aspnetcore-3.1&tabs=visual-studio.
Do we need to change anything in the server?
In creating my simple to-do application , I don’t require any server changes. You can add server-side code based on your application requirements.
When you say it is accessible offline, do we need to do any more changes in code to sync application data (changes done by user when offline)?
Yes. You can check out this Steve Sanderson sample for an example of how to do it:

Are you planning to add a ribbon control to the Blazor suite?
Not immediately, but maybe in later releases. You can submit your request on our feedback page at https://www.syncfusion.com/feedback/blazor-components.
Can I use Blazor WebAssembly (WASM) without any web server (IIS), say, only static pages using a browser on the client? Is it possible with or without Syncfusion controls?
Yes, you can. Refer to this link for more information: https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-3.1.

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed