I have 5 tabs, the last 2 tabs are hidden when the page loads for first use, call these Tab3 and Tab4. When a user clicks on a button from Tab0, the ButtonClick event fires, and RibbonBarButtonClickEventArgs is populated. This same code then hides Tab0, Tab1 and Tab2, while then making Tab3 and Tab4 visible. The user does there thing, then clicks a button from Tab3 to save their data, Buttonclick event fires, but this time RibbonBarButtonClickEventArgs is set to nothing, and the code dumps out as we try and determine which button was fired.
This seems like an issue because Tab0 is hidden, notice on the first ButtonClick it fires and is populated correctly. But as soon as that Tab (Tab0) is hidden it breaks.
We tried just enabling and disabling each tab, problem is that disabling a tab doesn't seem to stop a user from clicking on it, so then you have also disable the group, but get the ugly X graphic. But our preferred method is just to dynamically hide the tabs that the user simply doesn't need to see.
Ideas?
Cam.
This seems like an issue because Tab0 is hidden, notice on the first ButtonClick it fires and is populated correctly. But as soon as that Tab (Tab0) is hidden it breaks.
We tried just enabling and disabling each tab, problem is that disabling a tab doesn't seem to stop a user from clicking on it, so then you have also disable the group, but get the ugly X graphic. But our preferred method is just to dynamically hide the tabs that the user simply doesn't need to see.
Ideas?
Cam.