I can't get it running. What i'am missing.
Create from VS2013 Template MVC Project.
Including the Infragistics folder (css and js)
Adding in the _Layout in the head section ...
<head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@ViewBag.Title - xx-xx</title> @Styles.Render("~/Content/css") @Scripts.Render("~/bundles/modernizr") <script src="~/Scripts/jquery-1.10.2.min.js"></script> <script src="~/Scripts/jquery-ui-1.10.4.min.js"></script> <!-- This script reference is require by the Infragistics Loader rendered below --> <script src="@Url.Content("~/Infragistics/js/infragistics.loader.js")"></script></head>
and in the <body> ...
@(Html.Infragistics().Loader() .ScriptPath(Url.Content("~/Infragistics/js/")) .CssPath(Url.Content("~/Infragistics/css/")) .Render() )
After that in the (new Index - View) ...
@using Infragistics.Web.Mvc@model TheShopWeb.Areas.Analysis.Models.ClosedOrdersModel@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml";}<head> <title></title></head>><body> <h2>Index</h2> @(Html.Infragistics().Grid(Model.ListOfOrdersClosed.AsQueryable()) .Width("400px") .DataBind() .Render() ) </body>
Look at your Content/css bundle and add the infragistics css for theme and structure.
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.min.css",
"~/Content/site.css",
"~/Infragistics/css/themes/infragistics/infragistics.theme.css",
"~/Infragistics/css/structure/infragistics.css"));
No it didn't work. Is there a chance to get a sample- somewhat just a application "out of the box MS-Template with a ig-grid? For dummies ...
... and if i do it with "Standard-MS" it works.
@using Infragistics.Web.Mvc@model TheShopWeb.Models.ClosedOrdersModel@{ ViewBag.Title = "ClosedOrders"; Layout = "~/Views/Shared/_Layout.cshtml";}<h2> ClosedOrders</h2>@{ var grid = new WebGrid(@Model.ListOfOrdersClosed, rowsPerPage: 20, columnNames: new[] { "customers_name", "payment_method" }, canPage: true);}@grid.GetHtml( fillEmptyRows: false, mode: WebGridPagerModes.All, columns: grid.Columns( grid.Column("customers_name", header: "customers_name"), grid.Column("payment_method", header: "payment_method") ))"