This is a migrated thread and some comments may be shown as answers.

How to avoid the Iframe scrollers ?

1 Answer 69 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 27 Nov 2009, 09:20 AM
Hello,

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

Thanks for help
CS

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 01 Dec 2009, 09:04 AM
Hello Christian Surieux,

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


All the best,
Valentin.Stoychev
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.
Tags
HTMLPlaceHolder
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
Share this question
or