I have an UltraTabControl.
The developer hides tabs based on some application data.
I select the 3rd tab and change data then save. Works fine. I save a reference to the tab
UltraTab
selectedTab = ultraTabControl1.SelectedTab;
I call the method again. Shows all tabs then disables and sets Visible=false to tabs that shouldn't be show.
I select the 3rd tab since it was the tab the user is currently on through code.
ultraTabControl1.ActiveTab = selectedTab;
The 3rd tab is selected, but the Panel that belongs to the 1st tab is on is shown. I can click on any tab except the 1st and it won't change the tab panel.
I click the first tab and the ultratabcontrol beigns to function correctly again, but switch to the correct panel.
I tried to place BeginUpdate and EndUpdate to force a refresh.
Is there a way to re-sync the tabs after they are toggled with enabled/visisble?
Note:
I hooked to the SelectedTabChanged event also and it fires each time
Any ideas are appreciated.
Thanks,
Nick
k.
Thanks for the effort. I'll relay this to my manager.
Many fixes have been made since that version. If this is a bug in the UltraTabControl, there's a good chance it had been fixed. Try to upgrade to the latest version to see if it fixes your issue. If you do not have a subscription, download a trial version. That will tell us if it was an issue with the UltraTabControl and if so, why I cannot reproduce it now. If not, then I would probably need a sample to try to reproduce this.
We are using a BindingSource for the data. And this DisableTabs is called 4-5 times at startup. Then when we save the data. We get a new collection of data via DomainModels(NHibernate) and clear all bindings and then call the Disbale Tabs again.
So I'm think to create it is to bind several text fields via TextBox.Databings.Add() .
1) Call Clear on each field
2) Set databindings
3) create a save button and a new refresh method. This method calls points 1 and 2
3) Load the form, make changes and click the 3rd tab. Then click save. Save will call refresh.
That should recreate it. Although this could simply be an issue of my version being older or my form has spaghetti code.
I'm an asp.net developer, so I'm not an expert at infragistics controls.
We have version 6.1.20061.28
I am not able to reproduce the issue with the code provided. What version are you using? Have you tried upgrading to the latest SR to see if it fixes your issue?
Now when I take on the visible=false code and just disable the tab control works as expected.
It appears to only happen when I make the tabs invisible. I tried Refresh and BeginUpdate hoping that would force the Tab to resync it's tabs to no avail.
Thanks for looking at this.