Hi everybody,
is there a way to hide the tabs like they style=wizard property in WinTab? I couldn't find a way to do this?!
Thx in advance
Bob
Hi Bob,
Since javascript is public by definition, you may do a lot of customizations. However, in case of misbehavior there is no support. If you look at generated html, then you may learn structure of tab and probably notice table element which contains all tabs. Its index ends up with _tbl. So, you may find that element and hide its parent td/tr. Also you may compansate for missing top borders. For example, process ClientSideEvents.InitializeTabs and implement it by something like below:
function UltraWebTab1_InitializeTabs(oWebTab){ var elem = oWebTab.Tabs[0].getElement(); while((elem = elem.parentNode) != null) if(elem.nodeName == 'TABLE' && elem.id && elem.id.indexOf('_tbl') == elem.id.length - 4) break; if(!elem)return; while((elem = elem.parentNode) != null) if(elem.nodeName == 'TR') break; elem.style.display = 'none'; elem.style.visibility = 'hidden'; while((elem = elem.parentNode) != null) if(elem.nodeName == 'TABLE') break; elem.style.borderTop = '2px inset lightgrey';}
Hi Viktor,
thx for your answer. I'm asking about WebTab. The solution you suggested hides the tabs but not the whole tabstrip. I want to use the WebTab like a MultiView because of the dynamic loading features. I found this suggestion here in the forum. But when I can't hide the tabstrip, it is not the same.
If you ask about win control then you should send you question to win forum.
For UltraWebTab you may edit tabs using Tabs property which is accessible from quick designer, from property page and at run time. You may hide existing tab from user using Tab.Visible=false property on server and tab.setVisible(false) on client. Similar to show hidden tab.