View Full Version : Dynamically add Items to Panel

12 Jul 2010, 12:39 AM
I want to add elements to Panel dynamically.

For example, I have the code below

var p = new Ext.Panel({
title: '',
items: myActionClass.getItems

myActionClass is a Java based DWR Proxy Class and returns items as JSON. How can I add items dynamically like this?

12 Jul 2010, 1:02 AM
add items? Take a look in the API docs and see if there's a method you could use ;)