hi all
i have a web tab and in that web tab i have added 8 tabs. but my web tab is showing only 6 tabs at run time. Design time it shows 6 tabs correctly but at run time it shrinks and shows just 6 tabs. can any body tell me how to solve this problem
Hello! I have a very similar problem with some WebPanels. In my case the panels have there Width properties to 100%, and when an async postback occur and some controls are placed inside the panels, this ones became smaller (don't get the 100% width). Using the IE Developer plugin for IE, i was able to see that the WebPanel control (when has some child controls) don't render the value of his Width property, in the xhtml style attribute output value. To fix this wrong behavior i have to explicitly add the Width property value to the Style collection ( panel.Style["width"] = panel.Width; ) and from that moment the WebPanels mantain correctly the 100% width.
Hm. I think this one is likely beyond what I'll be able to answer via the forums. I can't tell what's causing this, or even whether or not it should be happening.
I suggest that you submit a support request so that a Developer Support Engineer can research this in more depth. So that we know we're running the same code that you're using, please attach a sample project that we can run and debug that demonstrates the behavior you're seeing.
Dear Vince McDonald
1) i m using Internet Explorer 7.0
2) In Master Page code behind, i found Doctype here
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3) yes, WebPanel still collapse its width if it has any content
I've got three additional questions:
Different browsers parse HTML differently than each other, and even the same browser may treat the same HTML differently under the same DOCTYPE.
I'm also moving this thread to the WebPanel forum, since it no longer seems to have much to do with WebTab.
Dear Vince McDonald!
i m using (NetAdvantage for .NET 2008 Vol. 2 CLR 3.5) Version 8.2.20082.2022. My Web Tab was in WebPanal. i just take out my web tab from WebPanel, Deleted WebPanel (Althouh Width of WebPanel was 100% and <td> in which i placed WebPanel, its width was also 100%), and my problem is solved. Now i think Problem is With WebPanel!!! Now every where in my Page webpanel is making same problem. if i place WebPanel in WebTab and Use its width property then it works fine. but if i simply place it in <td> then it shrinks at run time. What i have to do to fix it? i already downloaded a hotfix and installed it. Here is My Sample html Code
<table width="100%">
<tr>
<td width="100%">
StyleSetName="Office2007Blue" Width="100%">
<Header Text="Some Text" TextAlignment="Left">
<ExpandedAppearance>
<Styles CssClass="webPanel_ExpStyle" Width="100%">
</Styles>
</ExpandedAppearance>
<CollapsedAppearance>
<Styles Width="100%">
</CollapsedAppearance>
</Header>
</igmisc:WebPanel>
</td>
</tr>
</table>
Here is CSS class which i have applied to "Expanded Appearence"
.webPanel_ExpStyle
{
font-size:8pt;
}