how to load content url into raddock?

5 posts, 2 answers
  1. heriyanto binduni
    heriyanto binduni avatar
    3 posts
    Member since:
    Dec 2009

    Posted 28 Dec 2009 Link to this post

    hi, i know we can load content url from any web page into radwindow using NavigateUrl properties.
    but how do i perform the same thing using raddock?

    tia
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 29 Dec 2009 Link to this post

    Hi Heriyanto,

    You can add an iframe with the required url into your RadDock as shown below:
    aspx:
    <telerik:RadDock ID="RadDock1" runat="server"
         <ContentTemplate> 
             <iframe id="frame" runat="server" src="http://www.google.com"></iframe> 
         </ContentTemplate> 
    </telerik:RadDock>  

    Hope this helps..
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. heriyanto binduni
    heriyanto binduni avatar
    3 posts
    Member since:
    Dec 2009

    Posted 29 Dec 2009 Link to this post

    tq princy, it work very good ^_^
  5. Answer
    apb
    apb avatar
    46 posts
    Member since:
    Nov 2008

    Posted 29 Dec 2009 Link to this post

    If you want your iframe to auto size, you'll need something like this in your page:

        <script type="text/javascript">  
            var is_chrome = /chrome/.test(navigator.userAgent.toLowerCase());  
            function sizeHostFrame(target) {  
                var frame = $('#' + target.id);  
                var innerDoc = (frame.get(0).contentDocument) ? frame.get(0).contentDocument : frame.get(0).contentWindow.document;  
                var contentHeight = is_chrome ? innerDoc.body.offsetHeight : innerDoc.body.scrollHeight;  
                frame.height(contentHeight);  
            }  
        </script>  
     

    then do something like this with your iframe tag:

    <iframe onload="sizeHostFrame(this);" src="whatever" scrolling="no" height="75px" frameborder="0" style="width: 100%; padding: 0px; margin: 0px; border: none;"></iframe> 

  6. heriyanto binduni
    heriyanto binduni avatar
    3 posts
    Member since:
    Dec 2009

    Posted 30 Dec 2009 Link to this post

    tq, i will try this one too
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017