View Full Version : Newbie question

23 Nov 2010, 2:35 PM
I am trying to understand how I might change the alignment of a column when using grid from markup? Changing the html and css assocaited with the table seems to do nothing? I have discovered ColumnModel but do not udnerstand how I would incorporate that with this situation.

24 Nov 2010, 1:40 AM
So you are using Ext.ux.grid.TableGrid?

In that case you can configure the grid with 'columns' (same as for GridPanel, but you don't need to specify header, dataIndex, width, tooltip and sortable, unless you want a different value).

24 Nov 2010, 3:37 AM
That's correct. I made an attempt to do that but it simply stopped the execution.. can you give me a brief example of what the structure would be? This is where I am currently. I have eight columns to deal with, but if you can show how to adjust one, the rest I am sure willl begin to make some sense to me.

var grid = new Ext.ux.grid.TableGrid("the-table", {
stripeRows: true, // stripe alternate rows
scrollOffset : undefined,
autoHeight: false,
forcefit: true,
height: 130

24 Nov 2010, 4:12 AM

columns: [
{align: 'left'},
{align: 'center'},
{align: 'right'},
{header: 'Different header', align: 'right'},
{sortable: false},

24 Nov 2010, 4:33 AM
Bless you. The light came on.