我正在使用mvcgrid.net在mvc项目的表格中显示我的信息 如何正常工作我想改变
Showing 1 to 10 of 27 entries
页脚和
next and previous
网格文本,但我没有为此找到API,任何人都可以帮助我。
答案 0 :(得分:1)
自定义样式
要为表格使用自定义样式,您可以实施IMVCGridRenderingEngine
来创建表格。填充表格所需的一切都将在RenderingModel
对象中提供给您。完成实现后,在网格定义上设置属性以使用新的渲染引擎:
gridDef.DefaultRenderingEngine = typeof(CustomHtmlRenderingEngine);
此方法也可用于创建自定义导出格式。 您可以从链接中找到它。 http://mvcgrid.net/demo/customstyle
答案 1 :(得分:1)
我正在将网格配置为:
GridDefaults gridDefaults = new GridDefaults()
{
RenderingMode = RenderingMode.Controller,
ViewPath = "~/Views/MVCGrid/_Grid.cshtml",
NoResultsMessage = "Sorry, no results were found",
ItemsPerPage = 25,
MaxItemsPerPage = 200
};
我在_Grid.cshtml文件或我使用的任何自定义视图中更新了我需要的任何文本。