PDA

View Full Version : How view in grid.columnmodel - column with row index?



headroot
12 Nov 2009, 7:17 AM
name surname age bla bla bla bla
qw we 12 .. .. .. ..
ew wr 21
we sa 22
and i want to see -->>



rowindex name surname age bla bla bla bla
1 qw we 12 .. .. .. ..
2 ew wr 21
3 we sa 22
how to do that? or where i can find answer on my question?

12 Nov 2009, 7:17 AM
The examples show how to use a row numberer

headroot
12 Nov 2009, 7:20 AM
The examples show how to use a row numberer
thx
I'll look examples

headroot
12 Nov 2009, 7:40 AM
Here that I have found

var AColumnModel = new Ext.grid.ColumnModel(
[new Ext.grid.RowNumberer(),{
header: 'name',
readOnly: true,
dataIndex: 'name',
width: 70,
hidden: false,
sortable: true
},{...

But if i want, that number of row was sortable like as other rows? what i want to do?