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.
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.
// Install BlazorDataGrid as a Cake Addin
#addin nuget:?package=BlazorDataGrid&version=1.1.1
// Install BlazorDataGrid as a Cake Tool
#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. |
.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 | 198 | 9/1/2023 |
6.0.1-beta.5 | 61 | 9/1/2023 |
6.0.1-beta.3 | 64 | 9/1/2023 |
6.0.1-beta.2 | 62 | 9/1/2023 |
6.0.1-beta | 84 | 9/1/2023 |
6.0.0 | 125 | 8/25/2023 |
5.0.1 | 529 | 7/7/2022 |
5.0.0 | 352 | 11/19/2021 |
5.0.0-beta.1 | 156 | 8/22/2021 |
4.1.1 | 452 | 2/12/2021 |
4.1.1-beta.2 | 138 | 2/12/2021 |
4.1.1-beta.1 | 138 | 2/12/2021 |
4.1.0 | 336 | 2/12/2021 |
4.0.0 | 356 | 2/10/2021 |
3.0.0 | 547 | 10/16/2020 |
2.0.2 | 442 | 6/11/2020 |
2.0.1 | 266 | 5/14/2020 |
2.0.0 | 255 | 5/4/2020 |
1.11.0 | 2,496 | 12/16/2019 |
1.10.2 | 322 | 10/22/2019 |
1.10.1 | 283 | 10/21/2019 |
1.10.0 | 277 | 10/17/2019 |
1.9.0 | 311 | 10/15/2019 |
1.8.0 | 323 | 9/23/2019 |
1.7.0 | 292 | 9/6/2019 |
1.6.0 | 298 | 9/3/2019 |
1.5.0 | 285 | 9/2/2019 |
1.4.0 | 328 | 8/26/2019 |
1.3.0 | 326 | 8/22/2019 |
1.2.0 | 330 | 8/13/2019 |
1.1.1 | 329 | 8/5/2019 |
1.1.0 | 328 | 8/5/2019 |
1.0.0 | 350 | 8/3/2019 |