PDA

View Full Version : how to use LockingGridView in Layout



starstar
15 Oct 2010, 11:08 AM
I need to edit and lock the grid at the same time in a layout.

My question is how to use this in layout:
...
{
region: 'center',
split: true,
title: 'test',
layout: 'border',
border: false,
items: [{
region: 'north',
height: 250,
stripeRows:true,
split: true,
xtype: 'editorgrid',
store: store,
clicksToEdit: 2,
colModel: new Ext.ux.grid.LockingColumnModel([
{header: "Operator", dataIndex: 'operator', editor: notes_edit, width:70},
...
{header: "Notes", dataIndex: 'notes', editor: notes_edit, width:70}
]),
sm: new Ext.grid.RowSelectionModel({
singleSelect: true
}),
// view: new Ext.ux.grid.LockingGridView(),

......

the last line 'view: new Ext.ux.grid.LockingGridView(),' is not correct if I add it.

and if I do not use the last line, I also can lock the columns.

how to fix it?

Thank you.

starstar
16 Oct 2010, 7:10 AM
...........help