PDA

View Full Version : How to add MenuButton in grid cell



earist
10 Jul 2014, 2:15 AM
Hi all,

I am using ExtJS 4.1

I would like to show both text (as hyperlink) and menu button in grid cell like following picture:

49623

On the "Name" column, each row of this column contains text and follow by menu button.

How can I implement this feature?

Thanks in advance.
earist

skirtle
10 Jul 2014, 8:22 AM
You could use this UX:

http://www.sencha.com/forum/showthread.php?148064

Alternatively you'd fake the button using HTML and CSS and then use delegated listeners for the relevant events.

Phil Guerrant
10 Jul 2014, 9:54 AM
Not sure if using 5.0 is an option for you but just thought I'd mention that ext 5 supports components in grid cells out-of-box. See http://docs.sencha.com/extjs/5.0.0/apidocs/#!/api/Ext.grid.column.Widget

earist
13 Jul 2014, 6:12 PM
Thanks for your help skirtle. It work for me. :">

earist