This question is locked. New answers and comments are not allowed.
Hi guys, I've been trying to follow the localization example.
However, no matter what I do, I can't seem to get a grid to display anything other than english.
-I have a GridLocalization.de-DE.resx in my App_GlobalResources folder.
Here are some snippets of what I'm doing (a cobbled together hybrid of the example and whatever I have handy)
-In the view:
However, no matter what I do, I can't seem to get a grid to display anything other than english.
-I have a GridLocalization.de-DE.resx in my App_GlobalResources folder.
Here are some snippets of what I'm doing (a cobbled together hybrid of the example and whatever I have handy)
-In the view:
@(Html.Telerik().Grid(Model.TestField)
.Name(
"Grid4"
)
.Localizable(
"de-DE"
)
.Columns(columns =>
{
columns.Bound(o => o.Id).Width(100);
})
.Scrollable(scrolling => scrolling.Enabled(
true
))
.Sortable(sorting => sorting.Enabled(
true
))
.Pageable(paging => paging.Enabled(
true
))
.Filterable(filtering => filtering.Enabled(
true
))
.Groupable(grouping => grouping.Enabled(
true
))
.Footer(
true
))
@{ Html.Telerik().ScriptRegistrar().Globalization(
true
); }
-In the controller:
...
System.Threading.Thread.CurrentThread.CurrentUICulture =
new
System.Globalization.CultureInfo(
"de-DE"
);
return
View(model);
}
I've shown the parts I deem to be relevant, but there's lots more code in these files. If I'm missing something in order to make this work, please let me know. If what I've pasted should be working, then I know the rest of the code is breaking it somehow...
Thank you,
Luke