Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Oct 2007
    Location
    Hungary
    Posts
    136
    Vote Rating
    0
    slobo is on a distinguished road

      0  

    Default [2.0b1] grid header menu on non-sortable columns

    [2.0b1] grid header menu on non-sortable columns


    I set enableHdMenu=true
    but on non-sortable grid column headers
    menus are not accessible

    is this a bug or feature?

    a consequence:
    if all columns are non-sortable
    I cannot hide/show columns

    ---
    and a bit of ergonomy:

    if the header menus are accessible
    it is not so easy to resize the columns:
    the area where the cursor becomes the resize handle is too narrow

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,506
    Vote Rating
    373
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Thank you for posting. We will take a look at it.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    If a column is not sortable, it doesn't have a menu. You can override and modify this behavior if you'd like it to be different.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  4. #4
    Ext User
    Join Date
    Oct 2007
    Location
    Hungary
    Posts
    136
    Vote Rating
    0
    slobo is on a distinguished road

      0  

    Default


    if all columns are non-sortable
    I cannot hide/show columns

    why should these two features be dependent in this way?

  5. #5
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    Quote Originally Posted by slobo View Post
    if all columns are non-sortable
    I cannot hide/show columns

    why should these two features be dependent in this way?
    +1

  6. #6
    Ext User halkon_polako's Avatar
    Join Date
    Nov 2007
    Location
    Barcelona
    Posts
    193
    Vote Rating
    0
    halkon_polako is on a distinguished road

      0  

    Thumbs up Enabling menu header on non-sortable columns

    Enabling menu header on non-sortable columns


    I think it can be is a bug because Ext, when a column is not sortable, it disables the sorting options menu.

    The problem is that the button is never showed. The patch/workaround is:

    Code:
    Ext.override(Ext.grid.GridView,{
        handleHdOver : function(e, t){
            var hd = this.findHeaderCell(t);
    	    if(hd && !this.headersDisabled){
    	        this.activeHd = hd;
    	        this.activeHdIndex = this.getCellIndex(hd);
    	        var fly = this.fly(hd);
    	        this.activeHdRegion = fly.getRegion();
            //if(this.cm.isSortable(this.activeHdIndex) && !this.cm.isFixed(this.activeHdIndex)){  //previous CODE
    	        if(!this.cm.isFixed(this.activeHdIndex)){  //new CODE
    	            fly.addClass("x-grid3-hd-over");
    	            this.activeHdBtn = fly.child('.x-grid3-hd-btn');
    	            if(this.activeHdBtn){
    	                this.activeHdBtn.dom.style.height = (hd.firstChild.offsetHeight-1)+'px';
    	            }
    	        }
    	    }
    	}
    });
    Note that with this code, the menu on a column which is not sortable, have the sort options already disabled, because Ext already was prepared to do that.

    Naturally, Ext guys have the last word about this.

  7. #7
    Sencha User
    Join Date
    Jul 2011
    Posts
    2
    Vote Rating
    0
    ushasgr is on a distinguished road

      0  

    Default Show/Hide "Group By Field" in Column Menu

    Show/Hide "Group By Field" in Column Menu


    Quote Originally Posted by jack.slocum View Post
    If a column is not sortable, it doesn't have a menu. You can override and modify this behavior if you'd like it to be different.
    Hi,
    How to show and hide an option in column menu, eg: Group By Field through a button click event or outside ext js function

    /*===============*/
    groupView = new Ext.ux.MultiGroupingView({
    enableGroupingMenu : enableGroupingMenuStatus
    });

    //this below function is called on clicking a button
    function toggleGridViews(val){
    if(val=='custom') {
    ss.hide();
    enableGroupingMenuStatus=false;
    }
    else if(val=='standard')
    {
    ss.show();
    enableGroupingMenuStatus=true;
    }
    grid.store.load();
    }