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

Disabling scrollbars for the HTMLPlaceHolder

3 Answers 54 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
mc2000
Top achievements
Rank 1
mc2000 asked on 13 Aug 2010, 03:42 PM
I have the HTMLPlaceHolder and I would like it to not show scrollbars (basically working like an overflow:hidden). I tried:
(RotatorContent.HtmlPresenter.Children[0] as HtmlElement).SetStyleAttribute("overflow", "hidden");
as well as setting the scrollbar.visibility to hidden. How can I acheive this?

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 18 Aug 2010, 03:39 PM
Hello mc2000,

Can you try setting the iframe scrolling attribute instead, like so:
HtmlElement iframe = (HtmlElement)myHtmlPlaceHolder.HtmlPresenter.Children[0];
iframe.SetAttribute("scrolling", "no");

Give it a try and let me know if it works for you or if you need more info.

Greetings,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
ss
Top achievements
Rank 1
answered on 26 Oct 2010, 08:06 AM

I need to diable scrollbars too but following solution doesnt work.

1.RadHtmlPlaceholder htmlPlaceholder = new RadHtmlPlaceholder();
2.HtmlElement iframe = (HtmlElement)htmlPlaceholder.HtmlPresenter.Children[0];
3.iframe.SetAttribute("scrolling", "no");

iframe.TagName = "div"

Can you please help me.

Thank you.

0
Kiril Stanoev
Telerik team
answered on 28 Oct 2010, 04:42 PM
Hi ss,

Have you tried setting ScrollViewer.HorizontalScrollBarVisibility="Disabled" and ScrollViewer.VerticalScrollBarVisibility="Disabled"?

<telerik:RadHtmlPlaceholder ScrollViewer.HorizontalScrollBarVisibility="Disabled"
        ScrollViewer.VerticalScrollBarVisibility="Disabled" />

If this doesn't help could you please send us a project reproducing the issue. We'd be glad to further assist you.

Sincerely yours,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
HTMLPlaceHolder
Asked by
mc2000
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
ss
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or