代码拉取完成,页面将自动刷新
For each additional language add the following lines to the _Layout.cshtml view or directly to the page to call the required style sheet and script files (gridmvc-lang-xx.js file is loaded from the GridMvcCore nuget package):
<script src="~/js/gridmvc-lang-de.js" type="text/javascript"></script>
<script src="~/lib/bootstrap-datepicker/locales/bootstrap-datepicker.de.min.js" type="text/javascript"></script>
Then you have to call the SetLanguage function with the required language value when the grid is created in the view:
@using GridMvc
@model IEnumerable<Foo>
@await Html.Grid(Model).Columns(columns =>
{
columns.Add(foo => foo.Title);
columns.Add(foo => foo.Description);
}).SetLanguage("de").RenderAsync()
If you need to support other languages, please send me the translation of the following expressions and I will updete the component:
<- Setup initial column filtering | Client side object model ->
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。