Hi,
We declare couple UltraTabPageControl variables as shown below:
private UltraTabPageControl ultraTabPageDetail;
private UltraTabPageControl ultraTabPageModify;
...
However, intermittently the code crashes when we set the Selected property to true like the following:
this.ultraTabPageDetail.Tab.Selected = true;
and here is the stack trace:
[6:14:19 PM(IniTabContents)][Source --> Infragistics4.Win.UltraWinTabControl.v11.2] TargetSite -->Void OnManagerSelectedTabItemChanged(System.Object, SelectedTabItemChangedEventArgs)StackTrace --> at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanged(Object sender, SelectedTabItemChangedEventArgs e) at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value) at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.SetSelectedTab(UltraTab tab) at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.set_SelectedTab(UltraTab value) at Infragistics.Win.UltraWinTabControl.UltraTab.set_Selected(Boolean value) at Eclipsys.SunriseXA.ClinDoc.DocReview.UI.DocDetailsMain.InitTabContents()
Any ideas what would have caused the problem to occur? Thanks.
The issue has been resolved. It turned out our code was trying to re-use the ultratab that has been disposed. Thanks for your time anyway.
James
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this matter?
Thank you for using Infragistics Components.
Hello ,
TabPageControl is part of a tab (UltraTab) object, UltraTab is part of UltraTabControl. So if you want dynamically to add a tab s to UltraTabControl, you should create your UltraTab object to add it to the Tabs collection of UltraTabControl and then you will be able to select or activate it. In your case it seems that the UltraTab tab, on which this TabPage belongs, does not belong to any UltraTabContol.
Please let me know if you have any further questions or if I am missing something.