I am using Kendo grid in my project.
I am using culture script for internationalization.
Using that script it formats the numbers in grid depending upon culture I want to align the numbers to right, how can I achieve it?
Here is a fiddle where I am formatting number column.
The Kendo UI grid widget supports static/frozen columns by a single configuration setting. Simply set the locked attribute of the corresponding column to true, and this will bring the column in the locked columns group positioned on the left in the grid.
kendo:grid-pageable-messagesThe text messages displayed in pager. Use this option to customize or localize the pager messages.
Returns the data item to which the specified table row is bound. The data item is a Kendo UI Model instance.
You can achieve that using headerAttributes and Attributes property in the column description.
{
field: "n",
headerAttributes:{ style:"text-align:right"},
attributes:{ class:"text-right" } ,
//template: "<div style='text-align:right'>#= n #</div>",
format: "{0:n}", type: "number"
}
Please see the updated fiddle here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With