1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    95
    Vote Rating
    2
    TiloS is on a distinguished road

      0  

    Default Resize grid column header

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The columnresize event is firing for me when placed on the grid panel.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,111
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      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
    TiloS is on a distinguished road

      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