<script type="text/javascript">
function CorrectRoundPanelHeight(roundPanel) {
var mainElement = roundPanel.GetMainElement();
var offsetParent = _aspxFindOffsetParent(mainElement);
var offsetParentClearClientHeight = _aspxGetClearClientHeight(offsetParent);
var contentCell = roundPanel.GetContentElement();
var innerTable = _aspxGetChildByTagName(mainElement, "TABLE", 0);
var height = contentCell.offsetHeight;
_aspxSetOffsetHeight(contentCell, 0);
while (innerTable.offsetHeight < offsetParentClearClientHeight)
_aspxSetOffsetHeight(contentCell, ++height);
}
</script>
<div id="Container" style="border: 5px solid black; width: 470px; height: 470px; padding: 10px;">
<dxrp:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" Height="400px" ClientInstanceName="MyPanel">
<ClientSideEvents Init="function(s, e) { CorrectRoundPanelHeight(s); }" />
<PanelCollection>
<dxp:PanelContent runat="server">
Panel Content
</dxp:PanelContent>
</PanelCollection>
</dxrp:ASPxRoundPanel>
</div>