Forum /
Ext JS 2.x - Unsupported /
Ext 2.x: Help & Discussion /
How to recognize the column on which user has right clicked and open context menu?
How to recognize the column on which user has right clicked and open context menu?
Hi,
In my application, I have GridPanel with 5 columns, C1 to C5.
I want to put context menu on GridPanel but it should be different columnwise.
So, how to get the column details on which user has right clicked?
User can right click on any row. I want to detect, on which column level, he has opened context menu.
Thanks
Sencha - Community Support Team
You can use rowIndex and colIndex parameters of the cellcontextmenu event to determine the current record (from the store) and the current column (from the column model).
Ok..thanks...done it
One question regarding ToolTip: I have one button and put ToolTip on it. When I put cursor on it, it open tooltip.
What I want is, when user click on button, it should open tooltip rather than on mouse over.
In short, I dont want to open tooltip on mouse over but on click button.
How, to achieve this?
Sencha - Community Support Team
Do you actually want a tooltip? Or are you looking for a button with a menu?
I want tooltip...not button with menu..
Actually, I want to add GridPanel in tooltip of button, but it should open on click on button rather than mouse over.
Sencha - Community Support Team
Create the Tooltip instance separately and showAt it in the button click handler.
Ok..
I have GridPanel with 5 columns and I have one option in Context menu of Grid.
Now, on click of that option, I want to open up ToolTip (with arrow). So, I want to point that arrow on particular column of GridPanel.
How, to set target of Tooltip to column of Grid?
Sencha - Community Support Team
You already have to rowIndex and colIndex, so you can use grid.getView().getCell() to get the <td> element to align the tooltip to.
But, I dont want to point arrow of tooltip on cell but on corresponding column of cell.
Sencha - Community Support Team
Define 'column'... Do you mean the column header?
Similar Threads
By R.J in forum Ext.nd for Notes/Domino
Replies: 0
Last Post: 7 Dec 2009, 9:23 PM
By sbarkdull in forum Ext GWT: Help & Discussion (1.x)
Replies: 4
Last Post: 14 Jan 2009, 1:31 AM
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us