New to Telerik UI for ASP.NET MVCStart a free 30-day trial

Override the number formats in a culture

Environment

ProductProgress Telerik UI for ASP.NET MVC Grid
Progress Telerik UI for ASP.NET MVC versionCreated with the 2023.2.829 version

Description

How can I override the numeric delimiters for Telerik UI for ASP.NET MVC culture?

Solution

To achieve the desired scenario add a script which extends the numeric options for the culture:

Script.js
<script>
        var customUS = $.extend(true, {}, kendo.culture(), {
            name: "custom-US",
            numberFormat: {
              ",": " ",
              ".": "^",
  			  currency: {
                ",": " ",
                ".": "^",
              },
              percent: {
                ",": " ",
                ".": "^",
              }
            }
        });
      kendo.cultures["custom-US"] = customUS;
   	  kendo.culture("custom-US");
</script>

For a runnable example based on the code above, refer to the:

More ASP.NET MVC Culture Resources

See Also