This project shows how to add Radzne.Blazor
to an old Blazor Server
project, using .NET Core 3.1
.
The current getting started instructions on Radzen website no longer apply to older projects. This projects exists to serve as a tutorial on how to set up an older project.
- Add the needed NuGet package to your project:
<PackageReference Include="Radzen.Blazor" Version="3.8.13" />
. Newer versions do not seem to work. - Add the following uising statements to
_Imports.razor_
:
@using Radzen
@using Radzen.Blazor
- In
Pages/_Host.cshtml
: a. Import the default CSS:b. Import the javascript:<link rel="stylesheet" href="_content/Radzen.Blazor/css/default-base.css"/> <link rel="stylesheet" href="_content/Radzen.Blazor/css/default.css"/>
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>