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

Numeric column right alignment

Environment

Product Grid for Progress® Telerik® UI for ASP.NET Core

Description

How can I align a numeric column in Kendo UI Grid?

Solution

Add a custom class for the needed columns. Apply the appropriate styles using the class name selector.

<column field="UnitPrice" title="Unit Price" html-attributes='new Dictionary<string, object>{ ["class"] = "numericColumn" }'/>

<style>
    .numericColumn {
        text-align: right;
    }
</style>    

See Also

In this article
Not finding the help you need? Improve this article