using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.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 ActionResult Filtering()
{
ViewBag.Options = _flexGridFilteringModel;
return View();
}
}
}
@using WebApiExplorer.Models
@{
GridExportImportOptions optionsModel = ViewBag.Options;
ViewBag.DemoSettings = true;
}
<div id="@(optionsModel.ControlId)" style="height:300px"></div>
@section Settings{
@Html.Partial("_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(Resources.Wijmo5FlexGrid.Filtering_Text0)
}