PDA

View Full Version : Help: pull down menu on grid cell



Joe Kuan
5 Oct 2010, 8:22 AM
Hi,

I would like to implement a pull down menu when clicking on a grid cell. So I can launch further actions with the value inside the cell. However, the closest extjs feature I observe is combo box but this is not exactly I want because selecting a value also changing the value inside the box.

Thanks
Joe

troseberry
5 Oct 2010, 8:44 AM
try the Ext.menu.Menu

Condor
6 Oct 2010, 2:20 AM
1. Create an Ext.menu.Menu.
2. In the cellclick handler of the grid check if the correct column was clicked.
3. Show the menu at the event coordinates (or get the cell position and align the menu to that).

Joe Kuan
6 Oct 2010, 2:26 AM
Cool, thanks. Much appreciated.