disabling scrollbars on radhtmlplaceholder

3 posts, 0 answers
  1. silverkali
    silverkali avatar
    3 posts
    Member since:
    Aug 2012

    Posted 27 Jan 2011 Link to this post

    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. Vinny D.
    Vinny D. avatar
    10 posts
    Member since:
    Feb 2008

    Posted 30 Jan 2011 Link to this post

    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
  3. DevCraft banner
  4. silverkali
    silverkali avatar
    3 posts
    Member since:
    Aug 2012

    Posted 31 Jan 2011 Link to this post

    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.

Back to Top