0

如果用户可以在此图像上添加新项目,我想添加一个页脚行。 页脚的图像我正在使用 Vyacheslav Bukharin 的 gid.MVC。正如您在本教程中看到的那样https://www.c-sharpcorner.com/UploadFile/4d9083/creating-simple-grid-in-mvc-using-grid-mvc/

到目前为止,这是我的代码

@Html.Grid(Model).Columns(columns =>
                {
                    columns.Add(c => c.cliente_id).Titled("Cliente ID");
                    columns.Add(c => c.nombre_cliente).Titled("Cliente name");
                    columns.Add()
                    .Filterable(false)
                    .Encoded(false)
                    .Sanitized(false)
                    .SetWidth(30)
                    .RenderValueAs(o => Html.ActionLink("Edit", "Edit", new { id = o.cliente_id }));
                    columns.Add()
                    .Encoded(false)
                    .Sanitized(false)
                    .SetWidth(30)
                    .RenderValueAs(o => Html.ActionLink("Delete", "Delete", new { id = o.cliente_id }));                        
                    }).WithPaging(10).Sortable(true).Filterable(true).WithMultipleFilters()

我的问题是如何在 mvc 中添加与图像相同的页脚。谢谢您的帮助

4

1 回答 1

0

将 gridmvc.css 包含到您的 layout.cshtml .filtering 中,分页将开始工作。

<link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" 
type="text/css" />
于 2020-01-08T09:28:27.920 回答