Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145222 | Jun 12,2019 09:26 PM UTC | Jun 18,2019 03:06 PM UTC | Blazor | 3 |
![]() |
Tags: Grid |
<EjsGrid id="Grid" @ref="@defaultGrid" DataSource="@gridData" AllowPaging="true">
<GridPageSettings PageSize="5"></GridPageSettings>
<GridColumns>
<GridColumn Field=@nameof(OrdersDetails.OrderID) HeaderText="Order ID" TextAlign="@TextAlign.Right" Width="120"></GridColumn>
. . . .
</GridColumns>
</EjsGrid>
@functions{
EjsGrid defaultGrid;
public object gridData { get; set; }
protected override void OnAfterRender()
{
base.OnAfterRender();
this.defaultGrid.DataSource = OrdersDetails.GetAllRecords().ToList();
gridData = this.defaultGrid.DataSource;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.