View Full Version : Extjs 4 reusing component for multiple tab panel

17 Aug 2011, 12:16 AM
I am working with extjs 4 & rails 3. I am having a toolbar & a tab panel. I want to use the same toolbar for all the tab panel & want buttons on the toolbar to work according to tab that is active.

For eg. toolbar contains add,edit,etc buttons. Suppose i have region & category tabs. When region tab is active i should be able to perform "ADD" operation for "Region" & so on. What can be the correct way to achieve this in extjs 4 ? I am not able to assign action on toolbar in Region & Category controllers. I referred this (http://www.sencha.com/forum/showthread.php?101337-Use-one-grid-in-multiple-tabs)but I have no idea about how to implement the same in my application.

Any Suggestions??