I have modified an example I found on the Telerik site to determine
content size in order to adjust a pane and splitter to the size of the
content. All works in the example when you hard code some content.
However if I set the ContentURL of the pane to an external URL, the
sizing no longer works. Any ideas?
<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="FrameTest._Default" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"> <title>Untitled Page</title></head><body> <script type="text/javascript"> function SplitterLoaded(splitter, arg) { var pane = splitter.getPaneById('<%= RadPane2.ClientID %>'); var height = pane.getContentElement().scrollHeight; splitter.set_height(splitter.get_height() - pane.get_height() + height); pane.set_height(height); } </script> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="200px" Height="200px" OnClientLoaded="SplitterLoaded" Orientation="Horizontal"> <telerik:RadPane ID="RadPane2" runat="server" ContentUrl="http://google.com" Scrolling="None"> </telerik:RadPane> </telerik:RadSplitter> </form></body></html>