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

Html Host w/ PDF

4 Answers 97 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 29 Jan 2010, 09:26 PM
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

4 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 01 Feb 2010, 08:09 AM
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.
0
Mark
Top achievements
Rank 1
answered on 01 Feb 2010, 02:30 PM
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> 



0
Accepted
Valentin.Stoychev
Telerik team
answered on 01 Feb 2010, 03:45 PM
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.
0
Mark
Top achievements
Rank 1
answered on 01 Feb 2010, 04:32 PM
Wow. Love the screen casts.

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

-mark
Tags
HTMLPlaceHolder
Asked by
Mark
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Mark
Top achievements
Rank 1
Share this question
or