In fact, thanks for the fact that both guys for your messages helped me a lot. I found one solution myself.
I need to add the id property to my column. For instance:
{ xtype : 'numbercolumn', dataIndex : 'lineAmount', id : 'lineAmount', header : 'Net Line amount', }
and then it has its own css class, for example: .x-grid3-td-lineAmount , so I added the suggested css to these classes, and now it works fine for me
.x-grid3-hd-inner{ text-align: left; } .x-grid3-hd-lineAmount{ text-align: left; } .x-grid3-td-lineAmount{ text-align: right; } .x-grid3-hd-taxAmount{ text-align: left; } .x-grid3-td-taxAmount{ text-align: right; } .x-grid3-hd-invoiceAmount{ text-align: left; } .x-grid3-td-invoiceAmount{ text-align: right; }
I think that in version 4.2 it is better to use the @Mr_Green solution, but in 3.4 this workarround works for me :)
source share