Hello,
I'm using a RadTabStrip control and I need to hide and show tabs according to a condition and I need it to be using java script, so I'm doing this:
function changeTabVisibility(radTabStripID,tabValue,visible) {
var tabStrip = $find(radTabStripID);
var tab = tabStrip.findTabByValue(tabValue);
tab.set_visible(visible);
}
The problem is that not all the tabs are going to be showed at the beginning, so I need to hide them server side, and if I do a serverTabVariable.Visible=False then is going to fail when I try to set it as visible because the control was never render to the browser.
Basically my question is how can I simulated a tab.set_visible(false); but server side?
I tried doing something like this but it didn't work:
serverTabVariable.Attributes.Add("style", "display:none;"), the tab is been rendered as hide but then I can't set it back to visible.
I hope it is all clear.
Regards,
Adrian Calvo
I'm using a RadTabStrip control and I need to hide and show tabs according to a condition and I need it to be using java script, so I'm doing this:
function changeTabVisibility(radTabStripID,tabValue,visible) {
var tabStrip = $find(radTabStripID);
var tab = tabStrip.findTabByValue(tabValue);
tab.set_visible(visible);
}
Basically my question is how can I simulated a tab.set_visible(false); but server side?
I tried doing something like this but it didn't work:
serverTabVariable.Attributes.Add("style", "display:none;"), the tab is been rendered as hide but then I can't set it back to visible.
I hope it is all clear.
Regards,
Adrian Calvo