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?
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?
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
© 2022 - 2024 — McMap. All rights reserved.
text-right
is already defined in bootstrap.css, along withtext-left
,text-center
, etc. – Fieldwork