@using Syncfusion.EJ2.Blazor.Buttons
@using Syncfusion.EJ2.Blazor.DropDowns
@using Syncfusion.EJ2.Blazor.Grids
@using Syncfusion.EJ2.Blazor.Inputs
<EjsGrid DataSource="@OrderData" Toolbar=@ToolbarItems>
<GridEditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true"></GridEditSettings>
<GridColumns>
. . . . . . . . .. . . .
<GridColumn Field=@nameof(Order.ShipName) HeaderText="Ship Name" TextAlign="TextAlign.Center" EditType="EditType.DropDownEdit" Edit="@ShipNameEditParams" Width="120"></GridColumn>
. . . . . . . . . . . .. .
</GridColumns>
</EjsGrid>
@code{
. . . . . . . .. . . .
public object ShipNameEditParams = new
{
@@params = new EjsDropDownList<string>() { AllowFiltering = true }
};
} |