Mewriick / Blazor.FlexGrid

GridView component for Blazor
MIT License
199 stars 35 forks source link

Readme sample needs to be actualized to current version blazor sample project. #105

Open TPIvan opened 4 years ago

TPIvan commented 4 years ago

The sample code in readme is probably created for some old sample project version. the correct current version is:

@inject Data.WeatherForecastService ForecastService
@page "/grid"

<h1>Weather forecast</h1>

<GridView DataAdapter="@dataAdapter" PageSize="5"></GridView>

@code{
    CollectionTableDataAdapter<Data.WeatherForecast> dataAdapter;

    protected override async Task OnInitializedAsync()

    {
        var forecast = await ForecastService.GetForecastAsync(DateTime.Now);
        dataAdapter = new CollectionTableDataAdapter<Data.WeatherForecast>(forecast);
    }

}

And the image BlazorFlexgridWheather