Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145702 | Jul 4,2019 11:43 AM UTC | Jul 5,2019 10:23 AM UTC | Blazor | 1 |
![]() |
Tags: Grid |
...
@if (this.IsModalShown)
{
<EjsDialog id="dialog" header=@("modal") width="800px" isModal="true" allowDragging="true">
smt
<button @onclick=@(() => this.IsModalShown = false)>Close Modal</button>
</EjsDialog>
}
<EjsGrid @ref=this.defaultGrid DataSource=@this.gridData ShowColumnChooser="true" Toolbar="@(new List<string>() { "ColumnChooser", "Search" })"
AllowFiltering="true" CommandClicked="@CommandClickHandler">
<GridFilterSettings Type="@Syncfusion.EJ2.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
<GridSearchSettings Fields="@search" Operator="contains" Key="Denmark" IgnoreCase="true"></GridSearchSettings>
<GridColumns>
<GridColumn Field=@nameof(OrdersDetails.OrderDate) HeaderText="Order Date" Format="yMd"></GridColumn>
<GridColumn HeaderText="Actions" Commands=commands></GridColumn>
</GridColumns>
</EjsGrid>
@functions{
string[] search = new string[] { "ShipCountry"};
EjsGrid defaultGrid;
public bool IsModalShown { get; set; }
List<CommandModel> commands = new List<CommandModel>();
public List<OrdersDetails> gridData { get; set; }
...
} |
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.