Hello !
i've got a question about Telerik RadPanelBar control.
For example we've got a RadPanelBar control on form :
<telerik:RadPanelBar ID="testPanelBar" runat="server">
</telerik:RadPanelBar>
and a button which adds a new item to this RadPanelBar at runtime:
RadPanelItem newParentItem = new RadPanelItem();
RadPanelItem newChildItem = new RadPanelItem();
newChildItem.Controls.Add(new RadTextBox());
newChildItem.Text = "wazzap";
newParentItem.Items.Add(newChildItem);
languagesPanelBar.Items.Add(newParentItem);
when i click button, new RadPanelItem is added with all child controls(in this case it's RadTextBox in child item)
when button is clicked second time, second RadPanelItem is added with all controls, but this time
RadTexBox control dissapeared from first RadPanelItem.
And same when button is clicked for third time, new item added with all controls, but RadTextBox will dissapear from 1st and 2nd items.
am i doeing something wrong when dynamically adding items ?
Thank You !