RadHtmlPlaceHolder Scroll issue

12 posts, 0 answers
  1. Maulik Patel
    Maulik Patel avatar
    36 posts
    Member since:
    Mar 2010

    Posted 14 Apr 2010 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 14 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. Maulik Patel
    Maulik Patel avatar
    36 posts
    Member since:
    Mar 2010

    Posted 14 Apr 2010 Link to this post

    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.



  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 16 Apr 2010 Link to this post

    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.
  6. Maulik Patel
    Maulik Patel avatar
    36 posts
    Member since:
    Mar 2010

    Posted 21 Apr 2010 Link to this post

    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
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Apr 2010 Link to this post

    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.
  8. Lakshmi Satish
    Lakshmi Satish avatar
    8 posts
    Member since:
    Dec 2009

    Posted 08 Sep 2010 Link to this post

    Hi Adim

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


    Regards
    Lakshmi Satish Kumar.
  9. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 14 Sep 2010 Link to this post

    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
  10. Lakshmi Satish
    Lakshmi Satish avatar
    8 posts
    Member since:
    Dec 2009

    Posted 14 Sep 2010 Link to this post

    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.
  11. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 17 Sep 2010 Link to this post

    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
  12. Frank
    Frank avatar
    1 posts
    Member since:
    Mar 2013

    Posted 17 Feb 2014 in reply to Valentin.Stoychev Link to this post

    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
  13. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 19 Feb 2014 Link to this post

    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
Back to Top
DevCraft banner