Build PWAs with Blazor WebAssembly Using Syncfusion| Syncfusion Blogs
Detailed Blog page Skeleton loader
Build PWAs 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.

Be the first to get updates

Graham High

Meet the Author

Graham High

Graham High is a senior content producer for Syncfusion.