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

disabling scrollbars on radhtmlplaceholder

2 Answers 97 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
silverkali
Top achievements
Rank 1
silverkali asked on 27 Jan 2011, 08:42 PM
How can we disable the scrollbars that are automativally generated by the control. and use the scrollbars provided by silverlight to scroll. Is this possible to do so. In other words the control should expand to watever height the source url is. can anyone help me regarding this issue.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Vinny D.
Top achievements
Rank 1
answered on 30 Jan 2011, 08:58 PM
I am having a similar need. I've tried modifying the control with the following

ScrollViewer.VerticalScrollBarVisibility

 

 

="Hidden"

 


But it does not change the behavior.


-Vinny Davi
0
silverkali
Top achievements
Rank 1
answered on 31 Jan 2011, 07:22 PM
I think i found a solution for it. 
i hope it will not be a performance hit in the long run.

Dim radhtmlplaceholder as new RadHtmlPlaceholder()
radhtmlplaceholder.height = 1500 //depending upon the size of the html content.
Dim htmlelement as HtmlElement = Directcast(radhtmlplaceholder.htmlsource.children(0),htmlelement).setattribute("scrolling","no")
myControl.Content = radhtmlplcaeholder

the above piece of code should work without the scrollbars. the downfall is u have to hardcode the height of the control.

Tags
HTMLPlaceHolder
Asked by
silverkali
Top achievements
Rank 1
Answers by
Vinny D.
Top achievements
Rank 1
silverkali
Top achievements
Rank 1
Share this question
or