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

Dynamic Radwindow and RadHtmlPlaceHolder

7 Answers 187 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Kiran Canchi
Top achievements
Rank 1
Kiran Canchi asked on 24 Mar 2010, 11:23 PM

 

I call the below method where i create both Radwindow and htmlplaceholder dynamically.

Everything works fine.But when i minimize the rad window and then restore or maximize,the document does not show in the window.





private
void ShowDocument(string ThisDocLocation)

 

{

 

if (!string.IsNullOrEmpty(ThisDocLocation))

 

{

 

RadWindow DynaRadWindow = new RadWindow();

 

DynaRadWindow.WindowStartupLocation =

WindowStartupLocation.Manual;

 

DynaRadWindow.Left = 600;

DynaRadWindow.Top = 200;

 

RadHtmlPlaceholder DynaHtmlPlaceHolder = new RadHtmlPlaceholder();

 

 

Thickness thick = new Thickness(50, 50, 50, 50);

 

DynaHtmlPlaceHolder.Margin = thick;

DynaRadWindow.Content = DynaHtmlPlaceHolder;

DynaRadWindow.LocationChanged +=

new RoutedEventHandler(DynaRadWindow_LocationChanged);

 

 

DynaHtmlPlaceHolder.Visibility =

Visibility.Visible;

 

DynaHtmlPlaceHolder.SourceUrl =

new Uri(ThisDocLocation);

 

DynaRadWindow.Header =

"Document";

 

DynaRadWindow.Show();

}

}

7 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 25 Mar 2010, 02:41 PM
Hello Kiran,

I could not reproduce the problem using the latest version of the controls. Can you please take a look at the sample project I am attaching and modify it so that it reproduces the issue?

All the best,
Tihomir Petkov
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
Kiran Canchi
Top achievements
Rank 1
answered on 25 Mar 2010, 06:39 PM

I could reproduce the issue with your code by changing the URL from Telerik to a PDF document.

As I mentioned earlier,document loads fine initially.When i click minimize button and then click restore or maximize,i dont see the document.

Also is thier a way i can disable minimize button for dynamically created RadWindow and HtmlPlaceHolder

public

 

partial class MainPage : UserControl

 

{

 

public MainPage()

 

{

InitializeComponent();

}

 

private void Button_Click(object sender, RoutedEventArgs e)

 

{

 

RadHtmlPlaceholder placeholder = new RadHtmlPlaceholder();

 

placeholder.SourceUrl =

new Uri("http://mhcalbmosstv01:32233/Correspondence_Checks/2010/3/Check_61.pdf", UriKind.Absolute);

 

 

RadWindow window = new RadWindow();

 

window.Content = placeholder;

window.WindowStartupLocation =

WindowStartupLocation.CenterScreen;

 

window.Show();

}

}

0
Tihomir Petkov
Telerik team
answered on 26 Mar 2010, 02:19 PM
Hi Kiran,

Thank you for your feedback. I was able to reproduce the problem when the document in the HtmlPlaceholder is a PDF. I logged the issue in our bug tracking system and added 1000 Telerik points to your client account.

I also updated the project (see attachment) to implement a workaround that you can use until a patch is available. As for disabling the "minimize" button, this can be done by editing the control template of the control. Alternatively, you can set the RadWindow.ResizeMode to "NoResize", which will leave only the close button in the window header.

I hope I was able to help. Let me know if you have any other questions.

Sincerely yours,
Tihomir Petkov
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
Alexander Kotchkin
Top achievements
Rank 1
answered on 25 Apr 2012, 04:33 PM
Hi,
We're using RadHtmlPlaceholder in RadWindow to display PDF files.
After upgrading to the latest version 2012.1.326.1050 the HtmlPlaceHolder doesn't fit inside RadWindow,-
please see attached file. The screenshot was done by replacing telerik dlls in the htmlplaceholderinwindow.zip project.

Thanks in advance,
Alex
0
Tina Stancheva
Telerik team
answered on 30 Apr 2012, 09:50 AM
Hello Alex,

I wasn't able to reproduce this issue on our side - I attached the updated HtmlPlaceholderInWindow solution along with the 2012.1.326.1050 assemblies and this is a screencast demonstrating the behavior on our side. Please have a look at it and at the solution and let me know if I'm missing something.

Also, on a side I just wanted to let you know that we recently released a PdfViewer control that you can use to display PDF files instead of the RadHtmlPlaceholder.

Greetings,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Alexander Kotchkin
Top achievements
Rank 1
answered on 30 Apr 2012, 04:00 PM
I tested your solution in different browsers,- tt works fine in Firefox only, in both IE and Chrome I got the same problem. Any suggestions?
0
Tina Stancheva
Telerik team
answered on 03 May 2012, 02:01 PM
Hi Alexander,

As you can see in the screencast I previously send, I've tested the solution in IE 9.0.8112.16421 and it works as expected. I also tested it in Chrome v. 18.0.1025.168 and it works as expected as well. Can you tell us the version of your OS and broswer. Also can you check the Silverlight runtime version you have installed on your machine. Any additional info that you can give us might help in narrowing down the cause for the issue. Also, can you record a screencast of how the project works on your side - does it use the Telerik assemblies I sent or do you use another Telerik version?

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
HTMLPlaceHolder
Asked by
Kiran Canchi
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Kiran Canchi
Top achievements
Rank 1
Alexander Kotchkin
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or