Aug 02, 2013, 10:53 PM
[CLOSED] Access dynamic-created TabPanel items
Hi,
Because of the complexity of the application; I have to generate Ext components dynamically from C#.
I have a TabPanel and upon user interaction, tabs are added to the panel dynamically from C#. So far, that's working, but the point is to persist the data held in in each tab, but I'm failing to even reach any of the generated panels.
this is what I'm trying; the code inside the foreach is never reached (even if I have 20 tabs in the tabpanel) and when I do a
Because of the complexity of the application; I have to generate Ext components dynamically from C#.
I have a TabPanel and upon user interaction, tabs are added to the panel dynamically from C#. So far, that's working, but the point is to persist the data held in in each tab, but I'm failing to even reach any of the generated panels.
this is what I'm trying; the code inside the foreach is never reached (even if I have 20 tabs in the tabpanel) and when I do a
uiTabPanel.Items.Count
, it returns zero. //C# code
foreach(Ext.Net.Panel Panel in uiTabPanel.Items)
{
if (uiType.SelectedItem.Value == "1")
{
SaveTypeB(Panel);
}
else
{
SaveTypeA(Panel);
}
}
}
I'm trying to access the generated tabs from a DirectMethod called when clicking a 'Save' button.
Last edited by Daniil; Aug 13, 2013 at 3:48 AM.
Reason: [CLOSED]