Hi!
Is there an event for UltaTab or UltraTabControl that is fired when a tab is shown for the first time? An event similar to the Shown event.
I'm writing code that loads grid settings using LoadFromXML, but I can't load all the settings on the Shown Event because that effectively doubles the startup time of the application. I've tried binary format and that doesn't help. So on the advice of a help Infragistics employee (via webinar) I would like to perform the loading as necessary--when the user selects a tab for the first time.
Thanks!
Hello,
It seems to me that you are looking for the 'SelectedTabChanged' event. It fires for the first time after the initialization of the control for the default selected tab. It also fires every time when another tab is selected.
Please feel free to let me know if I misunderstood you or if you have any other questions.
First, thank you for responding Boris.
I looked at that event. But it appears that event will fire again for the same tab if I change to it. Consider: select tab A, select tab B then again select tab A. The selectedtabchanged event would fire when switching A->B and again for B->A. I don't want the event firing for B->A. Is this incorrect? Am I misunderstanding the semantics of the event?
Again I want something similar to the Shown event for the Form control.
Craig
Hello Craig,
Thank you for your last post. It is useful. My sample is really just an example and you are right about the approach.
If you like I could log a new product idea for you, to have an event which fires only one time for each tab on showing.
Boris,
I would think that an event of this type would be useful for all infragistics widgets. In fact initially I searched the documentation expecting to see the Shown event inherited from Form by infragistics controls. I think it could be useful but, as you showed, it can be accomplished with a little bit of code. So I would log it but suspect it wouldn't be high priority.
What I think should be a priority, is a mechanism for saving settings, e.g. LoadFromXML and SaveToXml, that doesn't require additional user code. I want an Infragistics UltraUISettingsManager that you attach to a form and it manages loading and saving settings. For instance if attached to a page with an UltraGrid, UltraTabControl and/or UltraToolbarManager, it would automatically load and save the settings. Granted this would be hard to get right for all applications but with the proper API the programmer can tweak the UltraUISettingsManager to behave correctly.
This need is where this thread comes from.
After some research, the "Support of 'Shown' event for the UltraTabControl tabs" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI12070190.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Outstanding! Thanks Boris.
I hope I don't sound ungrateful but let me be clear: the Shown event is not just for the UltraTabControl, I see if useful for all Infragistics widgets (where applicable of course, i.e. possibly not the UltraLabel). The UltraTab within a UltraTabControl, for instance, should also receive a Shown event. As should buttons, grids, charts..
I hope my UltraUISettingsManager class, for persisting UI settings to XML, get some consideration. Tie that into some sort of URI generator so that I can create URIs that can start my application, restore an encoded UI state via the UltraUISettingsManager, and you would have something extremely powerful!
Have a great day!
Hello Craig,Thank you for the dedication to this thread and the desire that you are showing.
In the description about these product ideas I have provided additional information - like the information which you just wrote.
Thank you again. Please do not hesitate to write me if you have any other requirements or questions, I will be happy to assist you.