-
28 Oct 2007 12:02 PM #1
[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
-
28 Oct 2007 2:10 PM #2
Thank you for posting. We will take a look at it.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
28 Oct 2007 4:31 PM #3
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.
-
28 Oct 2007 4:40 PM #4
if all columns are non-sortable
I cannot hide/show columns
why should these two features be dependent in this way?
-
27 Dec 2007 5:18 AM #5
-
27 Dec 2007 7:59 AM #6
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:
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.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'; } } } } });
Naturally, Ext guys have the last word about this.
-
14 Jul 2011 1:24 AM #7
Show/Hide "Group By Field" in Column Menu
Show/Hide "Group By Field" in Column Menu
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();
}


Reply With Quote


