Open TPIvan opened 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
The sample code in readme is probably created for some old sample project version. the correct current version is:
And the image