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 _flexGridModel = new GridExportImportOptions
{
NeedExport = true,
NeedImport = true,
IncludeColumnHeaders = true
};
public ActionResult Index()
{
ViewBag.Options = _flexGridModel;
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)');
initializeFlexGrid(grid);
</script>
@section Description{
@Html.Raw(Resources.Wijmo5FlexGrid.Index_Text0)
}