View Full Version : [CLOSED]Ext.grid.column.Template {#} always gives 1

24 Apr 2011, 8:18 PM
new Ext.grid.column.Template({
text: 'File',
flex: 50,
dataIndex: 'name',

I have changed the first column of list-view.js (in examples)
like above.

But every {#} gives me 1

I think it should be 1,2,3...

I am not sure whether it is a bug or I am getting wrong.

24 Apr 2011, 8:33 PM
I was a bit wrong, tpl should be '<tpl for=".">{#}</tpl>'

but it still doesn't work, always give 1

24 Apr 2011, 8:39 PM
oh, I think I am getting mistake

the # can only be used in dataview tpl...

I got mad... sorry...