Dynamic Radwindow and RadHtmlPlaceHolder

8 posts, 0 answers
  1. Kiran Canchi
    Kiran Canchi avatar
    2 posts
    Member since:
    Jan 2010

    Posted 24 Mar 2010 Link to this post

     

    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();

    }

    }

  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 25 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. Kiran Canchi
    Kiran Canchi avatar
    2 posts
    Member since:
    Jan 2010

    Posted 25 Mar 2010 Link to this post

    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();

    }

    }

  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 26 Mar 2010 Link to this post

    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.
  6. Alexander Kotchkin
    Alexander Kotchkin avatar
    23 posts
    Member since:
    Sep 2009

    Posted 25 Apr 2012 Link to this post

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

    Posted 30 Apr 2012 Link to this post

    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 >>

  8. Alexander Kotchkin
    Alexander Kotchkin avatar
    23 posts
    Member since:
    Sep 2009

    Posted 30 Apr 2012 Link to this post

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

    Posted 03 May 2012 Link to this post

    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 >>

Back to Top
DevCraft banner