diff --git a/docs/blazor_client/Quick_start.md b/docs/blazor_client/Quick_start.md index 834f941b..6fbcb76a 100644 --- a/docs/blazor_client/Quick_start.md +++ b/docs/blazor_client/Quick_start.md @@ -131,7 +131,7 @@ The steps to build a grid razor page using **GridBlazor** are: * **T**: type of the model items * **Grid**: grid object that has to be created in the **OnParametersSetAsync** method of the razor page -* You should use a **GridCoreServer** object in the server controller action. +* You should use a **GridCoreServer** object in the server controller action. * You can use multiple methods of the **GridCoreServer** object to configure a grid on the server. For example: ```c# @@ -145,6 +145,10 @@ The steps to build a grid razor page using **GridBlazor** are: * The server action returns a json including the model rows to be shown on the grid and other information requirired for paging, etc. The object type returned by the action must be **ItemsDTO**. +* You can use one of the following methods to get **ItemsDTO** object: + * ```server.ItemsToDisplay``` returns the object using the standard ```ToList``` method of the ```IQueryable``` object supplied by ```System.Linq``` package + * ```await server.GetItemsToDisplayAsync(Func, Task>> toListAsync)``` returns the object using a custom```toListAsync``` method of the ```IQueryable``` object. This method can be supplied by an ORM like EF Core. In this case we can call ```await server.GetItemsToDisplayAsync(async x => await x.ToListAsync())``` + For more documentation about column options, please see: [Custom columns](Custom_columns.md). [<- Installation](Installation.md) | [GridBlazor configuration ->](GridBlazor_configuration.md) \ No newline at end of file diff --git a/docs/blazor_server/Quick_start.md b/docs/blazor_server/Quick_start.md index db344ebf..67a9f515 100644 --- a/docs/blazor_server/Quick_start.md +++ b/docs/blazor_server/Quick_start.md @@ -53,6 +53,11 @@ The steps to build a grid razor page using **GridBlazor** are: .WithMultipleFilters(); ``` * The method returns an object including the model rows to be shown on the grid and other information requirired for paging, etc. The object type returned by the action must be **ItemsDTO**. + + * You can use one of the following methods to get **ItemsDTO** object: + * ```server.ItemsToDisplay``` returns the object using the standard ```ToList``` method of the ```IQueryable``` object supplied by ```System.Linq``` package + * ```await server.GetItemsToDisplayAsync(Func, Task>> toListAsync)``` returns the object using a custom```toListAsync``` method of the ```IQueryable``` object. This method can be supplied by an ORM like EF Core. In this case we can call ```await server.GetItemsToDisplayAsync(async x => await x.ToListAsync())``` + 2. You have to register the service in the **Startup** class: diff --git a/docs/dotnetcore_blazor/Quick_start.md b/docs/dotnetcore_blazor/Quick_start.md index a34273d8..327b510d 100644 --- a/docs/dotnetcore_blazor/Quick_start.md +++ b/docs/dotnetcore_blazor/Quick_start.md @@ -54,6 +54,10 @@ The steps to build a grid razor page using **GridBlazor** are: ``` * The method returns an object including the model rows to be shown on the grid and other information requirired for paging, etc. The object type returned by the action must be **ItemsDTO**. + * You can use one of the following methods to get **ItemsDTO** object: + * ```server.ItemsToDisplay``` returns the object using the standard ```ToList``` method of the ```IQueryable``` object supplied by ```System.Linq``` package + * ```await server.GetItemsToDisplayAsync(Func, Task>> toListAsync)``` returns the object using a custom```toListAsync``` method of the ```IQueryable``` object. This method can be supplied by an ORM like EF Core. In this case we can call ```await server.GetItemsToDisplayAsync(async x => await x.ToListAsync())``` + 2. You have to register the service in the **Startup** class: ```c#