PDA

View Full Version : add combobox or textfield under a grid column header



ttbgwt
12 Apr 2012, 7:35 AM
Does anyone know how to add a combobox or textfield under (or above) a grid's column header in 4.x?

scottmartin
12 Apr 2012, 8:19 AM
Are you referring to something like this?
http://localhost/extjs4/examples/grid/live-search-grid.html

To place it above, then you would just create a panel and create a toolbar the same way and add a grid underneath.

Regards,
Scott.

ttbgwt
12 Apr 2012, 8:29 AM
Please see attached image. Would like to attach it above or below a header, so that if the header is dragged and re-ordered, the textfield or combobox will stay with that header.

scottmartin
12 Apr 2012, 9:18 AM
Have a look at these plugins, as they have done this already.
http://www.sencha.com/forum/showthread.php?152923-Ext.ux.grid.FilterBar-plugin
http://www.sencha.com/forum/showthread.php?150918-Grid-Header-Filters

Regards,
Scott.

ttbgwt
12 Apr 2012, 10:50 AM
I just wanted to know how to insert a textfield into a column header container.

scottmartin
12 Apr 2012, 12:08 PM
Right .. have a look at their code .. the have already done this. I was not suggesting you use their plugin.

Regards,
Scott.