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

RadHtmlPlaceHolder Scroll issue

11 Answers 126 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Maulik Patel
Top achievements
Rank 1
Maulik Patel asked on 14 Apr 2010, 06:21 AM
Hi,

I am using RadHtmlPlaceHolder in my application. The control is set to fix height and width. So, it shows the vertical and horizontal scrolls as expected. But the problem is that the control doesn't change the position (and stick at the same location) when browser scroll-bar is moved. Please take a look of the attached screen shots.

Is there any configuration required to be done?

Regards,
Maulik

11 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 14 Apr 2010, 07:01 AM
Hi Maulik Patel,

Please check this issue:
http://www.telerik.com/support/pits.aspx#/public/silverlight/266

Pasting the resolution here:

---------
The problem was in the html page that is generated by the Visual Studio Silverlight Template. The following code should be updated in the HTML/ASPX page:
OLD
==============
<style type="text/css">
html, body {
height: 100%;
overflow:auto;
}
body {
padding: 0;
margin: 0;
}
#silverlightControlHost {
height: 100%;
text-align:center;
}
</style>
===================

NEW
===================
 
<style type="text/css">
html, body {
height: 100%;
}
body {
overflow:auto;
padding: 0;
margin: 0;
}
#silverlightControlHost {
height: 100%;
text-align:center;
}
</style>

====================

Please let us know if this fixes the problem!

Greetings,
Valentin.Stoychev
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
Maulik Patel
Top achievements
Rank 1
answered on 14 Apr 2010, 01:10 PM
Hi Valentin,

Thanks for the prompt response. I tried this approach too but didn't work. Do I need to set other properties? I had set the "windowless" property of the silverlight object to "true".

Regards,
Maulik.



0
Tina Stancheva
Telerik team
answered on 16 Apr 2010, 04:01 PM
Hi Maulik Patel,

Can you please elaborate on your scenario?

 If you can also send us a project reproducing the issue, we will be able to further investigate the cause.

All the best,
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
Maulik Patel
Top achievements
Rank 1
answered on 21 Apr 2010, 08:14 AM
Hi Tina,

I have raised a support ticket with code attached. Here is the number - 302326

Please let me know if you require more information.

Regards,
Maulik
0
Tina Stancheva
Telerik team
answered on 23 Apr 2010, 02:03 PM
Hello Maulik Patel,

Please refer to the answer I sent to your support ticket.

Let us know if you need more info.

Kind regards,
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
Lakshmi Satish
Top achievements
Rank 1
answered on 09 Sep 2010, 04:51 AM
Hi Adim

Could you please tell me that solution I have same problem.


Regards
Lakshmi Satish Kumar.
0
Kiril Stanoev
Telerik team
answered on 14 Sep 2010, 02:11 PM
Hi Lakshmi,

Please find bellow Tina's answer to the support ticket:

I modified your project following the suggestion here and it works as expected on our side. Can you take a look at the project and let me know if it works for you?

Best wishes,
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
0
Lakshmi Satish
Top achievements
Rank 1
answered on 14 Sep 2010, 02:24 PM
Hi,

Could you please give me that sample project for VS 2008. I am unable to build that website.
And also could you please try with the .aspx page instead of .html page.

Still I have the problem exists from my end.

Regards,
Lakshmi Satish Kumar.
0
Tina Stancheva
Telerik team
answered on 17 Sep 2010, 04:08 PM
Hello Lakshmi Satish,

The RadHtmlPlaceholder displays the external pages in an IFrame positioned over the whole Silverlight application. Therefore the ScrollBars of the WebBrwoser cannot move it properly. This is why it is best to hide the WebBrwoser's ScrollBar and use the RadHtmlPlaceholder built-in ScrollBar.

I attached a sample project for VS2008 where the Start-Up project should be 299663_Example.Web and you can set as a StartUp page the 299663_ExampleTestPage.aspx page.

Also, in the 299663_ExampleTestPage.aspx and 299663_ExampleTestPage.html pages the overflow property is set to hidden:
<style type="text/css">
    html, body {
        height: 100%;
        overflow:hidden;
    }
    body {
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    #silverlightControlHost {
        height: 100%;
        text-align:center;
    }
</style>

Give this approach a try and let me know if it works for you. Also, if your scenario requires a different approach, please elaborate on it so that we can provide you with a better-suites solution.

All the best,
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
Frank
Top achievements
Rank 1
answered on 17 Feb 2014, 09:28 PM
I am using RadHtmlPlaceHolder in my code as below to open html in Silverlight.

<telerik:RadHtmlPlaceholder x:Name="radHTMLHelp" SourceUrl="content/help/index.html" Margin="1" Background="{x:Null}"/>

In IE8 and FireFox, Chrome browsers, the html file is always loaded successfully no matter what resolution of screen resolution is set (see the first attch file)

However, in a IE9 browser, the same file cannot be loaded correctly. (See the second attach file). Is this a known issue and is there any fix?

Thank,
Frank
0
Zarko
Telerik team
answered on 19 Feb 2014, 05:20 PM
Hi Frank,
I already replied in the support thread you started. However I'll also paste my answer here to make it available for our community in case someone else encounters the same issue: 
"We are not aware of such an issue in the RadHTMLPlaceholder and I wasn't able to reproduce it. However, I guess it is caused by some IE compatibility problem with your html page because when I tested with a very simple html page everything was working. 
You could try to set an "x-ua-compatible" attribute which tells the IE to display this page in a specific mode:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
and test your index page this way. You can read more about this attributes here and here.
On a side note - I'll advice you to use the HTMLPlaceholder with our RadWindow instead of ChildWindow because they have a better built-in integration. You can read more 
here."
I hope I was able to help you and if you have more questions please feel free to ask.

Regards,
Zarko
Telerik
Tags
HTMLPlaceHolder
Asked by
Maulik Patel
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Maulik Patel
Top achievements
Rank 1
Tina Stancheva
Telerik team
Lakshmi Satish
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Frank
Top achievements
Rank 1
Zarko
Telerik team
Share this question
or