View Full Version : How to add Collapsible Panel with autoWidth in gridpanel tbar.

11 Sep 2012, 4:41 AM

I need to add a panel in grid tbar with collapsible, resize autowidth , since grid will be in maximize window.

i tried with this code but panel is not taking entire width.

tbar:[{xtype: 'panel',text:'Custom search',collapsible: true,collapsed: true,width:'100%',height:85}],

Using extjs 3.2 lib

19 Sep 2012, 11:55 AM
The tbar creates a toolbar that uses toolbar layout which is a <table>. You would need to add width : 100% to the <table> for the tbar so that the panel can have 100% width