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

HTMLPlaceholder Floats in SharePoint 2010

6 Answers 106 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 16 Dec 2010, 01:25 AM
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.

6 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 20 Dec 2010, 06:10 PM
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
0
Robert
Top achievements
Rank 1
answered on 20 Dec 2010, 07:41 PM
That was the solution. 

Thanks!
-Robert
0
Axel
Top achievements
Rank 1
answered on 18 Mar 2011, 08:42 AM
We have the same problem, but this solution don't fit our needs. It changes the behavior of SharePoint 2010.
0
Tina Stancheva
Telerik team
answered on 18 Mar 2011, 01:54 PM
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
0
Axel
Top achievements
Rank 1
answered on 18 Mar 2011, 02:58 PM
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?
0
Tina Stancheva
Telerik team
answered on 24 Mar 2011, 01:46 PM
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
Tags
HTMLPlaceHolder
Asked by
Robert
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Robert
Top achievements
Rank 1
Axel
Top achievements
Rank 1
Share this question
or