This demo application is a preview of the DevExpress UI for Razor Components.
The DevExpress UI components featured in this demo are available for free download and can be used in your next Razor Components/Blazor app.*
* Like any software preview, the DevExpress UI for Razor Components is not without fault. You should not use these products in production environments or in mission-critical applications.
- Data Grid
- Column Types
- Templates
- Large Datasets
- Pivot Grid
- Data Binding Basics
- Templates
- Large Datasets
- Data Editors
- Combo Box – Business Object List
- Combo Box – Cascading Lists
- Date Edit
- Spin Edit
- Text Box
- Pager
Check out the published demo website.
- Install Visual Studio 2019
- Ensure that you have .NET Core 3 installed.
- If you use Visual Studio 2019 release version, enable the "Use previews of the .NET Core SDK" option.
- Download the "demo" directory from this repository.
- Open demo/Demo.RazorComponents.sln in Visual Studio 2019.
- Start the application.
See also:
Introduction to Razor Components
Get started with Razor Components
Follow the steps below to try our Razor Components in your own application.
- Create a new solution using the "Razor Components" or "Blazor" template in Visual Studio 2019.
In the "Create a new project" dialog, select "ASP.NET Core Web Application" (C# language).
In the next step select "ASP.NET Core 3.*" framework and "Razor Components" project template.
- Register the DevExpress Early Access feed in Visual Studio's NuGet Package Manager.
Select "Package Manager Settings" in the Visual Studio menu.
Add a new NuGet source:
https://nuget.devexpress.com/early-access/api
- Install the "DevExpress.RazorComponents" NuGet package.
- Download all files from the client-runtime directory in this GitHub repository. Move the downloaded files into the "wwwroot" directory of your project. Include the files into your start page.
- Register our tag namespace and helper in /Components/_ViewImports.cshtml:
@using DevExpress.RazorComponents
@addTagHelper *, DevExpress.RazorComponents
- Your application is ready to use DevExpress Razor Components.
If you use Blazor (client-side hosting via MonoWASM) with DxDataGrid, you may see the following exception in your browser:
"System.InvalidOperationException: No generic method 'Take' on type 'System.Linq.Queryable' is compatible with the supplied type arguments and arguments."
Please refer the original mono issue in GitHub to resolve the issue.
Alternatively, your can simply turn off the linker. To do this, locate the .Client.csproj file and add the following line:
<BlazorLinkOnBuild>false</BlazorLinkOnBuild>
Project content should look like this:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
...
<BlazorLinkOnBuild>false</BlazorLinkOnBuild>
</PropertyGroup>
...
</Project>





