PDA

View Full Version : Fixed Rownumber don't match the rest Unfixed Part



spsp
24 Apr 2011, 7:00 PM
Fixed Rownumber don't match the rest Unfixed Part.Please help! Thanks!
25771


var grid = new Ext.grid.GridPanel({
store: store,
colModel: new Ext.ux.grid.LockingColumnModel([
new Ext.grid.RowNumberer({locked:true}),
{ header: 'Company', width: 160, sortable: true, dataIndex: 'company', locked: true, id: 'company'},
{ header: 'Price', width: 85, sortable: true, renderer: 'usMoney', dataIndex: 'price'},
{ header: 'Change', width: 85, sortable: true, renderer: change, dataIndex: 'change' },
{ header: '% Change', width: 85, sortable: true, renderer: pctChange, dataIndex: 'pctChange'},
{ header: 'Last Updated', width: 95, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
]),
stripeRows: true,
height: 350,
width: 500,
title: 'Locking Array Grid',
view: new Ext.ux.grid.LockingGridView()
});

spsp
24 Apr 2011, 10:33 PM
Complement: The unmatching appears only when there is only rownumberer column fixed. If I add another fixed data column, the rownumberer column will match the data column fixed left. Why only rownumberer column can't match the rest of unfixed part?

spsp
25 Apr 2011, 6:01 PM
Why it can't align? Please help.