BlazorDataGrid 1.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BlazorDataGrid --version 1.1.1
NuGet\Install-Package BlazorDataGrid -Version 1.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlazorDataGrid" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorDataGrid" Version="1.1.1" />
<PackageReference Include="BlazorDataGrid" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlazorDataGrid --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BlazorDataGrid, 1.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BlazorDataGrid@1.1.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlazorDataGrid&version=1.1.1
#tool nuget:?package=BlazorDataGrid&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
il faut ajouter dans le fichier _Imports.razor
@using BlazorDataGrid
Et dans le fichier Startup.cs dans la méthode public void ConfigureServices(IServiceCollection services)
services.AddScoped<AppState, AppState>();
Exemple d'utilisation
Le composant <BlazorDataGrid> accepte les paramètres suivant :
- Items : La liste qui remplie la datagrid
- PageSize : Le nombre de résultat par page. Le paramètre est obligatoire (0 signifie tout sur une page)
-
**ShowTotalResult** : Un booléen pour afficher ou non le nombre de résultats - BlazorDataGridColumn : Un composant permettant d'afficher les header
- GridRow : Les lignes de la datagrid
Le composant <BlazorDataGridColumn> accepte les paramètres suivant :
- DataGridColumn : Le composant détaillant chaque header
Le composant <DataGridColumn> accepte les paramètres suivant :
- Items : Il faut passer le même paramètre que pour le composant
<BlazorDataGrid> - ColumnName : Le nom réel de la colonne sur laquelle se base le filtre et le tri
- DisplayColumnName : (non obligatoire) Le nom qui sera affiché dans le header. Il est possible de passer le contenu du header entre les balises à la place
- Filter : true ou false pour afficher ou non le champ filtre sur la colonne
Exemple de code :
<BlazorDataGrid Items="@forecasts" PageSize="5" ShowTotalResult="true">
<BlazorDataGridColumn>
<DataGridColumn Items="@forecasts" ColumnName="Date" Filter="true"><strong>Date</strong></DataGridColumn>
<DataGridColumn Items="@forecasts" ColumnName="TemperatureC" DisplayColumnName="TemperatureC" Filter="true"></DataGridColumn>
<DataGridColumn Items="@forecasts" ColumnName="TemperatureF" DisplayColumnName="TemperatureF"></DataGridColumn>
<DataGridColumn Items="@forecasts" ColumnName="Summary" DisplayColumnName="Summary"></DataGridColumn>
</BlazorDataGridColumn>
<GridRow>
<td>@context.Date.ToShortDateString()</td>
<td>@context.TemperatureC</td>
<td>@context.TemperatureF</td>
<td>@context.Summary</td>
</GridRow>
</BlazorDataGrid>
Aperçu
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.AspNetCore.Blazor (>= 3.0.0-preview7.19365.7)
- Microsoft.AspNetCore.Blazor.Browser (>= 0.7.0)
- Microsoft.AspNetCore.Blazor.DevServer (>= 3.0.0-preview7.19365.7)
- Microsoft.CSharp (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.1 | 374 | 9/1/2023 |
| 6.0.1-beta.5 | 142 | 9/1/2023 |
| 6.0.1-beta.3 | 123 | 9/1/2023 |
| 6.0.1-beta.2 | 120 | 9/1/2023 |
| 6.0.1-beta | 170 | 9/1/2023 |
| 6.0.0 | 214 | 8/25/2023 |
| 5.0.1 | 656 | 7/7/2022 |
| 5.0.0 | 489 | 11/19/2021 |
| 5.0.0-beta.1 | 282 | 8/22/2021 |
| 4.1.1 | 604 | 2/12/2021 |
| 4.1.1-beta.2 | 278 | 2/12/2021 |
| 4.1.1-beta.1 | 270 | 2/12/2021 |
| 4.1.0 | 497 | 2/12/2021 |
| 4.0.0 | 501 | 2/10/2021 |
| 3.0.0 | 695 | 10/16/2020 |
| 2.0.2 | 580 | 6/11/2020 |
| 2.0.1 | 401 | 5/14/2020 |
| 2.0.0 | 401 | 5/4/2020 |
| 1.11.0 | 2,652 | 12/16/2019 |
| 1.10.2 | 457 | 10/22/2019 |
| 1.10.1 | 419 | 10/21/2019 |
| 1.10.0 | 431 | 10/17/2019 |
| 1.9.0 | 475 | 10/15/2019 |
| 1.8.0 | 465 | 9/23/2019 |
| 1.7.0 | 430 | 9/6/2019 |
| 1.6.0 | 459 | 9/3/2019 |
| 1.5.0 | 422 | 9/2/2019 |
| 1.4.0 | 485 | 8/26/2019 |
| 1.3.0 | 477 | 8/22/2019 |
| 1.2.0 | 491 | 8/13/2019 |
| 1.1.1 | 471 | 8/5/2019 |
| 1.1.0 | 471 | 8/5/2019 |
| 1.0.0 | 498 | 8/3/2019 |