New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Grid Globalization

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
globalization.cshtml
GlobalizationController.cs
ProductService.cs
ProductViewModel.cs
Globalization_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

Globalization is a process which combines web applications adaptation to meet the requirements of local markets and different languages (localization) with their adaptation to specific cultures (internationalization).

The ASP.NET Core Data Grid delivers globalization through the translation of its messages with adapting them to specific cultures and right-to-left support, as demonstrated is this demo.

Telerik UI for ASP.NET Core provides globalization features through the supported internationalization and localization approaches. The internationalization feature applies the desired cultures by providing services for defining these cultures, and parsing and formatting dates and numbers. The Telerik UI for ASP.NET Core localization services include the available RTL mode of Telerik UI for ASP.NET Core components and the ability to change their displayed messages by adding an additional script file in the document.

This demo shows how to change the culture and language in which the Data Grid messages are displayed. The Telerik UI culture defines specific information for the number formats, week and month names, date and time formats, and more. The Telerik UI culture scripts are generated from the Windows 10 and .NET 4.7 server-side culture definitions and match them by design.

The demo also shows how the selected culture from the Telerik UI for ASP.NET Core DropDownList updates the server culture. This behavior enables the Telerik UI for ASP.NET Core Grid to use the matching Resource file messages and localize them accordingly. The kendo.culture() method sets the client cluture to force the Data Grid to use the matching date, number, currency, week, and month formats.

The Telerik UI messages are community-sourced. If a translation is missing from the Resource messages, the Grid will use the default "en-US" messages.

For more information about the globalization capabilities, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on the available internationalization and localization settings.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources