Results 1 to 3 of 3

Thread: Remove field from sorting of column

  1. #1
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    20
      0  

    Post Remove field from sorting of column

    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
    Code:
    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/exam...id-filter.html

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

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    Columns with fixed:true or hideable:false are not shown in the columns menu.

  3. #3
    Ext User
    Join Date
    Mar 2008
    Posts
    186
    Vote Rating
    0
      0  

    Default

    try the following (as condor said too):

    Code:
    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
    }]);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •