PDA

View Full Version : RowNumberer Value as a column value



Holomew
15 Mar 2010, 6:28 AM
Is there a way to get the value of the RowNumberer in a grid?

For example, if I wanted to get the RowNumberer value of say ID number 3?

norizam61
13 May 2010, 5:08 PM
Hi holomew

I required the same ... any progress ?, according to zaki it just rowindex+1 but how to use? you have idea?

Thanks

wguo
13 May 2010, 5:14 PM
var colModel = new Ext.grid.ColumnModel([
new Ext.grid.RowNumberer(),
{header: "Name", width: 80, sortable: true},
{header: "Code", width: 50, sortable: true},
{header: "Description", width: 200, sortable: true}
]); grid.getColumnModel()? May you can try!

norizam61
14 May 2010, 7:58 AM
this code will show serial number of the grid, it same with extjs example. this not what i want, i want this serial no to become the column value, for example to be the unique ID or what soever.

anyway thanks