Posted 16 September 2021, 8:25 am EST
Hi,
I have a lot of problem for use your component…
Model Channels (generate by entity framework)
public partial class Channels
{
public int MapChannelsID { get; set; }
public string Name { get; set; }
public string ServiceReference { get; set; }
public int TypeId { get; set; }
public Nullable<int> MediaId { get; set; }
}
Controller : ChannelController
public class ChannelsController : Controller
{
private dbentitites db = new dbentitites();
// GET: Channels
public ActionResult Index()
{
return View(db.Channels);
}
}
View : index
@using C1.Web.Mvc.Fluent
@using C1.Web.Mvc.Grid
@using Record.Models
@model IEnumerable<Record.Models.Channels>
@{
ViewBag.Title = "Chaîne - Liste";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@(Html.C1().FlexGrid<Channels>().Id("gsFlexGrid")
.IsReadOnly(true)
.AllowSorting(true)
.Bind(Model)
.AutoGenerateColumns(true)
)
Where is my error? Because I have always a blank page…
Thank you
Regards