Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146654 | Aug 13,2019 04:35 AM UTC | Aug 14,2019 01:07 PM UTC | Blazor | 1 |
![]() |
Tags: Grid |
...
<EjsButton @onclick="@Click">Load Data</EjsButton>
<EjsGrid @ref="@Grid" DataSource="@Orders" AllowPaging="true">
<GridPageSettings PageCount="2"></GridPageSettings>
<GridColumns>
...
</GridColumns>
</EjsGrid>
@code{
...
private void Click(UIEventArgs args)
{
Orders = Enumerable.Range(1,2).Select(x => new Order()
{
OrderID = 1000 + x,
...
}).ToList();
}
protected override void OnInit()
{
Orders = null;
}
...
}
|
|
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.