PDA

View Full Version : Extending grid panel markup



Roman Töngi
19 Feb 2014, 4:06 AM
I would like to create a filter bar for the grid panel. For that I want to render a container between the header container and the grid panel body. I didn't find the place where to extend the markup/grid's template. I also failed to render a container at the desired place after the grid has rendered.

Can anyone provide me with some hints or sample code?
Thanks a lot

evant
19 Feb 2014, 4:17 AM
You can create it as a docked item. The weight config can be used to control the position (above/below the grid headers).

See: http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.AbstractComponent-cfg-weight

Roman Töngi
19 Feb 2014, 4:27 AM
Great!