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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    The columnresize event is firing for me when placed on the grid panel.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,154
    Vote Rating
    34
      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

Posting Permissions

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