I have a TabStrip with a RadGrid.
I have a series of tabs that is enabled or disabled depending if the user selects, adds, deletes or modifies the grid.
(ex: the "Removed" tab is enabled when the user removes a row from the grid)
Here's how I'm enabling/disabling the tabs:
Functionality wise, it works fine in both IE7 and IE8. However, in IE8, the text inside the disable tabs is a bold grey-ed out font which is hard to read. In IE7, the font is black. Any reason why it's like this?
I have a series of tabs that is enabled or disabled depending if the user selects, adds, deletes or modifies the grid.
(ex: the "Removed" tab is enabled when the user removes a row from the grid)
Here's how I'm enabling/disabling the tabs:
for ( var i = 0; i < tabstrip.Tabs.length; i++ ) |
{ |
// Get the current tab text. |
var tabText = tabstrip.Tabs[i].Text; |
// Search for the old count number between the parens, |
// then truncate it completely. |
tabText = tabText.substring( 0, tabText.indexOf( "(" ) ); |
// Add the new count number, and set the tab text. |
tabText += "(" + tabCounts[i] + ")"; |
tabstrip.Tabs[i].SetText( tabText ); |
// Enable/Disable based upon the bit mask. |
// tab is always enabled. |
var enable = (i == 0) || (tabCounts[i] > 0); |
if ( enable ) |
{ |
tabstrip.Tabs[i].Enable(); |
} |
else |
{ |
var theTab = tabstrip.Tabs[i]; |
theTab.Disable(); |
theTab.DomElement.setAttribute( "disabled", false ); |
} |
} |
Functionality wise, it works fine in both IE7 and IE8. However, in IE8, the text inside the disable tabs is a bold grey-ed out font which is hard to read. In IE7, the font is black. Any reason why it's like this?