Feb 05, 2009, 1:51 PM
[CLOSED] Creating tabs on the fly in an AjaxEvent
Is this the correct way to create some tabs on the fly after pushing a button?
If I debug it, the code runs as expected but still the Ajax call response is empty: {}
*** * * *foreach (DataRow locale in templateLocales.Tables[0].Rows)** * * *{
** * * * * *string loc = locale["Locale"].ToString().Replace("-", "");
** * * * * *Coolite.Ext.Web.Tab newTab = new Coolite.Ext.Web.Tab("tab" + loc, locale["Locale"].ToString());
** * * * * *Coolite.Ext.Web.FitLayout newFit = new Coolite.Ext.Web.FitLayout();
** * * * * *Coolite.Ext.Web.HtmlEditor newEdit = new Coolite.Ext.Web.HtmlEditor();
** * * * * *newEdit.ID = "html" + loc;
** * * * * *newFit.Controls.Add(newEdit);
** * * * * *newTab.BodyControls.Add(newFit);
** * * * * *this.tabPanelTemplates.Tabs.Add(newTab);
** * * *}
If I debug it, the code runs as expected but still the Ajax call response is empty: {}