Results 1 to 5 of 5

Thread: Resize grid column header

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    95
    Vote Rating
    2
      0  

    Default Resize grid column header

    Hello,

    is there an event when I change the size of a column (column-header) in 4.1.b2?

    I expect when I change the size per mouse in the header that the whole column will resize but it only changes the size of the header. Also the event "columnresize" doesn't fire. It seems like a bug but I want to resize myself (grid.doLayout()) if there is an event when I change the column header.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Vote Rating
    1367
      0  

    Default

    The columnresize event is firing for me when placed on the grid panel.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,183
    Vote Rating
    40
      0  

    Default

    Maybe just add a listener to the grid it self, it has a columnresize event.

    If you want to adjust the data in the body as well after a column resize (thats indeed a bug), refresh the grids view

    Code:
    columnresize: {
                    fn: function(header, column, width, eOpts) {
                        
                        this.getView().refresh();
    
                    }
                },

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    95
    Vote Rating
    2
      0  

    Default

    I guess its the included filterbar plugin which not let fire the "columnresize" event of the grid. Its not fired because the column is not resized but only the header.

    So I ask if there is an event when the column header resize? With this event I could resize the column manually.

  5. #5
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Redwood City
    Posts
    30,756
    Vote Rating
    81
      0  
    Longtime Sencha engineer. Now surplus to requirements apparently...

Posting Permissions

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