How to avoid the Iframe scrollers ?

2 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 27 Nov 2009 Link to this post


    How to avoid the Iframe scrollers when displaying a web page, how to position the window on the target url ?

    Thanks for help
  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Dec 2009 Link to this post

    Hello Christian Surieux,

    You need to set the scrolling attribute to the Html iframe. Here is a code snippet:
    public MainPage()
        Loaded += new RoutedEventHandler(MainPage_Loaded);
    void MainPage_Loaded(object sender, RoutedEventArgs e)
        (RadHtmlPlaceholder1.HtmlPresenter.Children[0] as HtmlElement).SetAttribute("scrolling", "no");

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top