View Full Version : [FIXED] Column Alignment

4 Sep 2017, 1:20 AM
It is impossible to set the "align" - property of a grid-column to "right" or "left". The only possible values are "start", "center" and "end".
But "end" and "right" handle the header in a different way: With "end" the header is left-aligned, with "right" it is right-aligned.
( https://fiddle.sencha.com/#view/editor&fiddle/262t )
Also i can't find any documentation to "start" or "end" at http://docs.sencha.com/extjs/6.5.1/modern/Ext.grid.column.Column.html#cfg-align

SA Version

Platform - win32 x64


Ext JS 6.5.x Classic

4 Sep 2017, 4:30 AM
With the docs you have to make a difference between classic and modern http://docs.sencha.com/extjs/6.5.1/classic/Ext.grid.column.Column.html

FYI you can just select the component in SA and click F1 it will open you the docs.

So far it looks like bug in ExtJS because it clearly says that it should be also header. Anyway SA should allow you to write your own values. I will fix that.

4 Sep 2017, 4:36 AM

thanks for your quick reply. I'm glad to heard that this bug is going to be fixed.
In the meantime, i wrote an override, that works for my usage (i need all number-columns right aligned ):

Ext.override(Ext.grid.column.Number, {
align: 'right'