Clear Up
SharpKit Reference

RowNumberer Class

This is a utility class that can be passed into a Ext.grid.column.Column as a column config that provides an automatic row numbering column.

Usage:

  
columns: [
            {xtype: 'rownumberer'},
            {text: "Company", flex: 1, sortable: true, dataIndex: 'company'},
            {text: "Price", width: 120, sortable: true, renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
            {text: "Change", width: 120, sortable: true, dataIndex: 'change'},
            {text: "% Change", width: 120, sortable: true, dataIndex: 'pctChange'},
            {text: "Last Updated", width: 120, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
            ]
            

Namespace: Ext.grid

© Copyright 2005-2011 SharpKit. All rights reserved.