PDA

View Full Version : Remove field from sorting of column



tomalex0
30 Apr 2009, 2:10 AM
im using Grouping store in grid ,i have to group the list with respect to User mentioned below but i dont want to show the User in sort--->columns---> how can remove User alone from that column


this.columnModel = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer() {

header: 'Domain',

readOnly: true,

dataIndex: 'name',

width: 200,

hidden: false

},
{

header: 'User',

readOnly: true,

dataIndex: 'user',

width: 60,

hidden: true,


}]);

for example
http://www.extjs.net/deploy/dev/examples/grid-filtering/grid-filter.html

from above mentioned page i dont want to show "Company" in sorting--->Columns--> , how can i do that

Condor
30 Apr 2009, 2:38 AM
Columns with fixed:true or hideable:false are not shown in the columns menu.

nctag
30 Apr 2009, 3:13 AM
try the following (as condor said too):



this.columnModel = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer() {
header: 'Domain',
readOnly: true,
dataIndex: 'name',
width: 200,
hidden: false
},
{
header: 'User',
readOnly: true,
dataIndex: 'user',
width: 60,
hidden: true,
hideable: false
}]);