Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148011 | Oct 1,2019 09:56 PM UTC | Oct 3,2019 01:20 PM UTC | Blazor | 3 |
![]() |
Tags: Grid |
<EjsGrid @ref="Grid" DataSource="@Orders" AllowGrouping="true" Height="400">
<GridEvents DataBound="OnDataBound" TValue="Order"></GridEvents>
<GridGroupSettings Columns="@(new string[] {"CustomerID"})"></GridGroupSettings>
. . . . . . . . . . . . . .
</EjsGrid>
@code{
EjsGrid<Order> Grid;
public bool IntialRender = true;
public List<Order> Orders { get; set; }
public void OnDataBound()
{
if (!IntialRender)
{
Grid.GroupCollapseAll();
IntialRender = true;
}
}
…… …. . . . . . .
} |
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.