using Microsoft.AspNetCore.Mvc;
using WebApiExplorer.Models;
namespace WebApiExplorer.Controllers
{
public partial class Wijmo5FlexGridController : Controller
{
private readonly GridExportImportOptions _flexGridFilteringModel = new GridExportImportOptions
{
NeedExport = true,
NeedImport = false,
IncludeColumnHeaders = true
};
public IActionResult Filtering()
{
ViewBag.Options = _flexGridFilteringModel;
return View();
}
}
}
@{
GridExportImportOptions optionsModel = ViewBag.Options;
ViewBag.DemoSettings = true;
}
<div id="@(optionsModel.ControlId)" style="height:300px"></div>
@section Settings{
@await Html.PartialAsync("_FlexGridOptions", optionsModel)
}
<script>
var grid = new wijmo.grid.FlexGrid('#@(optionsModel.ControlId)'), filter;
initializeFlexGrid(grid);
filter = new wijmo.grid.filter.FlexGridFilter(grid);
</script>
@section Description{
@Html.Raw(Wijmo5FlexGrid.Filtering_Text0)
}