1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| // grid which supports column locking
// just need to specify the locking version of the column model and grid view
var grid = new Ext.grid.GridPanel(
{
store: dinnerData,
colModel: new Ext.ux.grid.LockingColumnModel( [
{ header: "Name", dataIndex: "name", id: "colName" },
{ header: "Arrival Date", dataIndex: "arrivalDate" },
{ header: "Dinner Choice", dataIndex: "dinnerChoice" }
] ),
view: new Ext.ux.grid.LockingGridView(),
title: "Event Planner",
width: 350,
height: 250
}
);
|