Html Host w/ PDF

5 posts, 1 answers
  1. Mark
    Mark avatar
    12 posts
    Member since:
    May 2009

    Posted 29 Jan 2010 Link to this post

    This one is interesting...
    Load up a .PDF in the HTML host control and for some reason when you click into the control we loose the silverlight control. Same behavior on 'other' host controls.

    -Mark
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Feb 2010 Link to this post

    Hello Mark,

    We will need more info to investigate this. I tried to point the HtmlPlaceholder url to a PDF file and everything worked as expected. Can you open a support ticket and attach a project where we can investigate the issue.

    Is the issue reproducable with any PDF file?

    Thank you in advance for your cooperation.

    Greetings,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Mark
    Mark avatar
    12 posts
    Member since:
    May 2009

    Posted 01 Feb 2010 Link to this post

    We are still evaluating your controls so support ticket option doesn't appear to be available.

    Here is a code snippet. Click into the pdf and the surrounding silverlight elements will vanish. Click into silverlight and the will reappear.

    <UserControl 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
        x:Class="SilverlightApplication2.MainPage" 
        Width="903" Height="696"
     
        <Grid x:Name="LayoutRoot" Background="White"
            <TextBlock HorizontalAlignment="Left" Margin="50,8,0,0" VerticalAlignment="Top" Text="Click into the PDF and silverlight elements will vanish! Click outside of the pdf and the silverlight elements will return!" TextWrapping="Wrap" Width="510"/> 
            <telerik:RadHtmlPlaceholder Margin="50,69,343,85" SourceUrl="\\yourfilepath\test.pdf"/> 
            <Rectangle Fill="#FF570909" Stroke="Black" Height="90" HorizontalAlignment="Right" Margin="0,69,158,0" VerticalAlignment="Top" Width="163"/> 
            <Ellipse Fill="#FFBDD2A0" Stroke="Black" Height="117" HorizontalAlignment="Right" Margin="0,186,204,0" VerticalAlignment="Top" Width="117"/> 
        </Grid> 
    </UserControl> 



  5. Answer
    Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Feb 2010 Link to this post

    Hello Mark,

    Please check this screencast:
    http://www.screencast.com/users/Valentin.Stoychev/folders/Jing/media/5627501e-2ea0-4743-ab18-75c0f4667b0d

    Can you please let us know what is your configuration - browser and OS.

    I also have attached the test project - please let us know if it is still not working for you.

    All the best,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Mark
    Mark avatar
    12 posts
    Member since:
    May 2009

    Posted 01 Feb 2010 Link to this post

    Wow. Love the screen casts.

    Your question led to the solution. It appears to be an IE6 issue. :-)

    -mark
Back to Top
DevCraft banner