View Full Version : unable align column value with ExtJS grid

rahul patil
27 Mar 2015, 3:57 AM
Hi There,

I am working on attched extjs grid.
I would like to align amount coloumn value to right.
Here extjs is adding amount field values with following html tag:

<div class="x-grid-cell-inner " style="text-align: left; ;">$879.235</div>

It is creating inner style with text-align:left and I am unable to align it to right.
I tried many solutions provided on this site but did not get solution.
Any help would be highly appreciated.


27 Mar 2015, 5:49 AM
Where is your code?

Have you tried adding align to your column config?

align : 'right',

rahul patil
29 Mar 2015, 11:23 PM
Thanks Martin,

I was missing align:'right' it worked.
Also I applied style:'text-align:right' to align column header.