-
27 Dec 2010 12:17 AM #11
-
27 Dec 2010 12:18 AM #12Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Code:grid.getView().getHeaderCell(colIndex)
-
27 Dec 2010 3:16 AM #13
Hi condor, ur solution worked like magic... thanks.
But, now I am facing one GUI related typical issue.
On context menu's option click, I have opened Tooltip by creating its object with configuration property with fadeIn effect. I have rendered GridPanel in ToolTip also. And it open by targeting respective column of right clicked cell.
But, when I click on option, Tooltip panel opened very quickly some where on top left corner of GridPanel and closed and then open with fadeIn effect at column's header part (arrow points to it).
This behavior found when render Grid in tooltip. Without it , it works properly.
What can be the problem? Hope, I can clearly mention my issue.
thanks
-
27 Dec 2010 3:35 AM #14Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Do not render the grid inside the tooltip! Specify the grid as one of the items of the tooltip.
-
27 Dec 2010 3:39 AM #15
Please refer my code used to render gridpanel in tooltip. What is wrong with it and how to resolve?
Code:var gridView = myGrid.getView(); var cellEl = gridView.getHeaderCell(this.cellIndex); var columnName = this.getColumnModel().getColumnAt(this.cellIndex).header; new Ext.ToolTip({ id:'gruopByToolTip', title:'Group By ', target:cellEl, anchor: 'top', width: 500, height:200, autoHeight:false, autoHide: false, closable: true, items:[ { xtype:'group-by-grid-panel' // GridPanel rendering in tooltip } ], listeners:{ scope:this, afterrender:function(t) { t.getEl().fadeIn(); t.setTitle("Group By " + columnName); } } }).show();
-
27 Dec 2010 3:48 AM #16Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
1. You only need to create the tooltip once, and not for every cell click.
2. Maybe you could create the tooltip with cls:'x-hidden' and remove this class in the fadeIn callback.
-
27 Dec 2010 3:56 AM #17
Similar Threads
-
[OPEN][BETA3]Duplicate menu items in context menu
By R.J in forum Ext.nd for Notes/DominoReplies: 0Last Post: 7 Dec 2009, 9:23 PM -
Which grid row is clicked when opening context menu?
By sbarkdull in forum Ext GWT: Help & Discussion (1.x)Replies: 4Last Post: 14 Jan 2009, 1:31 AM


Reply With Quote