A panel with 2 tabs, where the first one contains a preloaded GridPanel, and the second loads another GridPanel dynamically (at the moment of the tab being activated).
Code:
netzke :two_grid_panels, :class_name => "AccordionPanel", :items => [{ :class_name => "GridPanel", :model => "Boss", :name => "bosses" }, { :class_name => "GridPanel", :model => "Clerk", :name => "clerks" }], :ext_config => { :width => 700, :title => "Two GridPanels loaded dynamically" }
Result:
Same as before, but the second panel is loaded from the beginning
Code:
netzke :two_preloaded_grid_panels, :class_name => "AccordionPanel", :items => [{ :class_name => "GridPanel", :model => "Boss", :name => "bosses" }, { :class_name => "GridPanel", :model => "Clerk", :name => "clerks", :preloaded => true }], :ext_config => { :width => 700, :title => "Two GridPanels loaded dynamically" }
Result: