PDA

View Full Version : Update panel in tab



env0ke
29 Aug 2011, 2:53 AM
Hi all,

I have tab with border layout. In north region i have form (in toolbar), in center region i have empty panel. When i set form field values and submit, server response data for chart. I create chart. How i can insert chart to panel in center region?

I try:


Ext.getCmp('some-panel').add([some-chart-object]);
Ext.getCmp('some-panel').doLayout();

Is not work.

env0ke
29 Aug 2011, 3:31 AM
Ext.getCmp().add worked. The error was in the other code.