Components.QuickGrid 1.2.800

dotnet add package Components.QuickGrid --version 1.2.800
NuGet\Install-Package Components.QuickGrid -Version 1.2.800
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="Components.QuickGrid" Version="1.2.800" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Components.QuickGrid --version 1.2.800
#r "nuget: Components.QuickGrid, 1.2.800"
#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 Components.QuickGrid as a Cake Addin
#addin nuget:?package=Components.QuickGrid&version=1.2.800

// Install Components.QuickGrid as a Cake Tool
#tool nuget:?package=Components.QuickGrid&version=1.2.800

QuickGridCollection

Notre version de QuickGrid offre des fonctionnalités supplémentaires par rapport à la version originale. Elle accepte les ICollection et offre des options de filtre avancées. De plus, elle permet un tri multiple et peut être utilisée avec n’importe quel fournisseur qui accepte System.Linq.Expressions, tels que Linq, Entity Framework ou Simple.Odata.Client. Le filtrage et le tri sont effectués en externe, et la pagination est indépendante de la grille.

Our version of QuickGrid offers additional features compared to the original version. It accepts ICollection and offers advanced filter options. In addition, it allows multiple sorting and can be used with any provider that accepts System.Linq.Expressions, such as Linq, Entity Framework or Simple.Odata.Client. Filtering and sorting are done externally, and pagination is independent of the grid.

Example of use

<QuickGridC TGridItem="WeatherForecast" Items="@forecastsGrid" FilterSortChanged="FilterSortChanged">
    <PropertyColumnC Property="@(e => e.Date)" IsSortable="true" />
    <PropertyColumnC Property="@(e => e.TemperatureC)" Title="Temp. (C)" HasAdvancedFilterOptions="true" />
    <PropertyColumnC Property="@(e => e.TemperatureF)" Title="Temp. (F)" />
    <PropertyColumnC Property="@(e => e.Summary)" />
 </QuickGridC>
 <GridPaging PaginationState="gridPagingState"/>

private WeatherForecast[]? forecastsGrid;
    private IQueryable<WeatherForecast> forecasts = default!;
    private IQueryable<WeatherForecast> queryForecastsGrid = default!;
    private GridPagingState gridPagingState = new(5);

    protected override async Task OnInitializedAsync()
    {        
        forecasts = (await ForecastService.GetForecastAsync(DateOnly.FromDateTime(DateTime.Now))).AsQueryable();
        queryForecastsGrid = forecasts;
        gridPagingState.PageChanged += HandlePageChange;
        gridPagingState.CurrentPage = 1;
    }

    private void FilterSortChanged(GridQuery<WeatherForecast> filteringAndSorting)
    { 
        queryForecastsGrid = filteringAndSorting.ApplyQueryForLinq(forecasts, true);
        gridPagingState.CurrentPage = 1;
    }

    private void HandlePageChange(object? sender, GridPageChangedEventArgs e)
    {
        e.TotalItems = queryForecastsGrid.Count();
        
        var queryable = queryForecastsGrid;

        if (e.Skip > 0)
            queryable = queryable.Skip(e.Skip);

        queryable = queryable.Take(e.ItemsPerPage);

        forecastsGrid = queryable.ToArray();
        StateHasChanged();
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.2.800 537 12/24/2023
1.2.102 283 9/12/2023
1.0.101 84 9/11/2023
1.0.1 83 9/10/2023
1.0.0 81 9/10/2023