BlazorDataGrid 1.2.0
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.2.0
NuGet\Install-Package BlazorDataGrid -Version 1.2.0
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.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorDataGrid" Version="1.2.0" />
<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.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BlazorDataGrid, 1.2.0"
#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.
#addin nuget:?package=BlazorDataGrid&version=1.2.0
#tool nuget:?package=BlazorDataGrid&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Compatible avec .net Core 3 preview 8
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-preview8.19405.7)
- Microsoft.AspNetCore.Blazor.Browser (>= 0.7.0)
- Microsoft.AspNetCore.Blazor.DevServer (>= 3.0.0-preview8.19405.7)
- Microsoft.CSharp (>= 4.6.0-preview8.19405.3)
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 | 307 | 9/1/2023 |
6.0.1-beta.5 | 91 | 9/1/2023 |
6.0.1-beta.3 | 90 | 9/1/2023 |
6.0.1-beta.2 | 87 | 9/1/2023 |
6.0.1-beta | 128 | 9/1/2023 |
6.0.0 | 172 | 8/25/2023 |
5.0.1 | 599 | 7/7/2022 |
5.0.0 | 418 | 11/19/2021 |
5.0.0-beta.1 | 206 | 8/22/2021 |
4.1.1 | 516 | 2/12/2021 |
4.1.1-beta.2 | 198 | 2/12/2021 |
4.1.1-beta.1 | 191 | 2/12/2021 |
4.1.0 | 435 | 2/12/2021 |
4.0.0 | 439 | 2/10/2021 |
3.0.0 | 629 | 10/16/2020 |
2.0.2 | 514 | 6/11/2020 |
2.0.1 | 336 | 5/14/2020 |
2.0.0 | 324 | 5/4/2020 |
1.11.0 | 2,577 | 12/16/2019 |
1.10.2 | 392 | 10/22/2019 |
1.10.1 | 353 | 10/21/2019 |
1.10.0 | 349 | 10/17/2019 |
1.9.0 | 381 | 10/15/2019 |
1.8.0 | 398 | 9/23/2019 |
1.7.0 | 362 | 9/6/2019 |
1.6.0 | 375 | 9/3/2019 |
1.5.0 | 357 | 9/2/2019 |
1.4.0 | 402 | 8/26/2019 |
1.3.0 | 407 | 8/22/2019 |
1.2.0 | 408 | 8/13/2019 |
1.1.1 | 406 | 8/5/2019 |
1.1.0 | 400 | 8/5/2019 |
1.0.0 | 428 | 8/3/2019 |