Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151260 | Feb 5,2020 10:26 AM UTC | Feb 6,2020 07:06 AM UTC | Blazor | 1 |
![]() |
Tags: Grid |
<EjsButton OnClick="Store">Save selection</EjsButton>
<EjsButton OnClick="Load">Load selection</EjsButton>
<EjsGrid @ref="Grid" DataSource="@Orders" AllowSelection="true" AllowSorting="true" AllowPaging="true">
…. .. ..
</EjsGrid>
@code{
EjsGrid<Order> Grid { get; set; }
public List<double> SelectedIndexes = new List<double>();
public List<Order> Orders { get; set; }
public async void Store()
{
SelectedIndexes = await Grid.GetSelectedRowIndexes();
}
public async void Load()
{
await Grid.SelectRows(SelectedIndexes);
}
. . . . .. . . .
}
|
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.