using Microsoft.AspNetCore.Mvc;
using WebApiExplorer.Models;
namespace WebApiExplorer.Controllers
{
public partial class Wijmo5FlexGridController : Controller
{
private readonly GridExportImportOptions _flexGridModel = new GridExportImportOptions
{
NeedExport = true,
NeedImport = true,
IncludeColumnHeaders = true
};
public IActionResult Index()
{
ViewBag.Options = _flexGridModel;
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)');
initializeFlexGrid(grid);
</script>
@section Description{
@Html.Raw(Wijmo5FlexGrid.Index_Text0)
}