<EjsGrid DataSource="@Orders>
..
<GridColumns>
……………………………………..
<GridColumn Field=@nameof(Order.ShipCountry) HeaderText="Ship Country" EditType="dropdownedit" Edit="@countryDropDownOptions" Width="150"></GridColumn>
</GridColumns>
</EjsGrid>
@code{
public object countryDropDownOptions { get; } = new EditOptions(
new
{
allowFiltering = true,
filterType = "endswith"
});
public class EditOptions
{
public object @params { get; set; }
public EditOptions(object p)
{
}
}
…………...
} |
|