Posted 13 minutes ago (permalink)
I have some stackpanel within RadTabControl. Let me give an overview of one such stack panel.
<telerikNavigation:RadTabControl x:Name="tabControl" Height="Auto" Background="Transparent" Margin="0,0,0,10" BorderThickness="0">
<telerikNavigation:RadTabItem Header ="Technical">
<StackPanel x:Name="AssociateReportsPanel" Orientation="Vertical" Margin="0,5,0,0"/>
</telerikNavigation:RadTabItem>
In code behind.. On Page load, I call a webservice and then on even completed I populate the stackpanel with a control as follows.
AssociatedReportsCustomListControl = new CustomListControl("Associated Reports", e.ScorecardMeasure.AssociatedReports);
AssociateReportsPanel.Children.Add(AssociatedReportsCustomListControl);
Every time I change the Tab and then come back, the control within stackpanel is added again. How can I overcome this issue