HTMLPlaceholder Floats in SharePoint 2010

7 posts, 0 answers
  1. Robert
    Robert avatar
    12 posts
    Member since:
    Jul 2010

    Posted 15 Dec 2010 Link to this post

    I am trying to create a Silverlight web part to be used on a SharePoint 2010 site.  The goal is to present some data in the RadGridView, and based upon the record selected, show an existing InfoPath report in the HTMLPlaceholder.  This works as expected within the VS 2010 development environment, but once the XAP has been used as a Silverlight Web Part in SP2010, the HTMLplaceholder portion of the display no longer scrolls with the rest of the page.  What am I missing?

    -Robert

    12/16/2010 Update:  I have tried this with the HTMLplaceholder
    • in the Main.xaml
    • in a seperate user control, added to the Main.xaml by ContentPresenter
    • using RadDocking
    • using RadWindow

    All versions present the same floating HTMLplaceholder content.  I've attached screenshots to illustrate.

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 20 Dec 2010 Link to this post

    Hello Robert,

    In SharePoint the default style of the page is defined in the corev4.css file.
    It defines the following styles that have to be modified in order to allow you to move the HtmlPlaceHolder with the page ScrollViewer:
    body.v4master{
    height:100%;
    width:100%;
    overflow:auto;
    }
      
    body #s4-workspace{
    overflow:inherit;
    position:relative;
    left:0px;
    }

    You can find the modified file attached for further reference. I hope this info will help you.

    Greetings,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. Robert
    Robert avatar
    12 posts
    Member since:
    Jul 2010

    Posted 20 Dec 2010 Link to this post

    That was the solution. 

    Thanks!
    -Robert
  5. René
    René avatar
    3 posts
    Member since:
    Jan 2011

    Posted 18 Mar 2011 Link to this post

    We have the same problem, but this solution don't fit our needs. It changes the behavior of SharePoint 2010.
  6. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 18 Mar 2011 Link to this post

    Hello Manuela,

    I am not sure what you mean when you say that the solution changes the behavior of SharePoint 2010. Can you please elaborate on that?

    Also, please keep in mind that the RadHtmlPlaceholder renders external pages in an IFrame positioned above the Silverlight plugin and therefore all styles applied on the page where the plugin is hosted affects the way the IFrame is renedered. So you can control the ScrollBars visibility mostly through styles.

    Best wishes,
    Tina Stancheva
    the Telerik team
  7. René
    René avatar
    3 posts
    Member since:
    Jan 2011

    Posted 18 Mar 2011 Link to this post

    The SharePoint 2010 Toolbar is scrolling out of the visible area in your solution. I don't want to explain, but this is realy bad. What i need to know is, will Telerik fix it,and when? Or should i find a solution by my self?
  8. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Mar 2011 Link to this post

    Hello Manuela,

    RadHtmlPlaceholder renders external pages in an IFrame positioned above the Silverlight plugin and therefore all styles applied on the page where the plugin is hosted affect the way the IFrame is rendered. This is the reason why, we have little control over the way any external pages are displayed inside the HtmlPlaceholder.

    And you can control the ScrollBars visibility/functionality mostly through styles. On our side the above suggestions worked as expected, although we will keep looking into other solutions to your scenario. However, it would be best if you check the style applied to the page where you add the Silverlight WebPart hosting the HtmlPlaceholder control and manage the overflow properties accordingly to the page's content and your requirements.

    Best wishes,
    Tina Stancheva
    the Telerik team
Back to Top
DevCraft banner