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

HtmlPlaceholder control not working properly inside a SL3 ChildWindow...

9 Answers 169 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 18 Aug 2009, 01:58 AM
I have an HTML Placeholder control inside a SL3 child window.

The HTML Place holder is set to display a web page.

When I launch the childWindow as a dialog, the webpage doesn't display inside the HtmlPlaceholder control.

Is this supported?  Is there smething special I need to do to get this to work?

If instead I put the same HtmlPlaceHolder control inside a SL3 page control pointing at the same web page, it works fine.

=====

I will create a support ticket for this and attach a simple test app that clearly shows the problem.

9 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 20 Aug 2009, 08:06 AM
Hello Ed,

Thank you again for reporting this - we confirm this is a bug and will try to fix it with the internal release next week. You can use RadWindow to host the html placeholder control like in this demo:
http://demos.telerik.com/silverlight/#HtmlPlaceholder/WindowIntegration

Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
BlogReader
Top achievements
Rank 1
answered on 28 Sep 2009, 09:34 PM
Was this fixed. I was able to reproduce this in version 2009 SP2.
0
Valentin.Stoychev
Telerik team
answered on 29 Sep 2009, 08:53 AM
Hi BlogReader,

We don't have 2009 SP2 version. What is the version of the dlls that you are using.

Yes- this bug should be fixed in the internal builds that are available in your account.

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
Ed
Top achievements
Rank 1
answered on 29 Sep 2009, 01:17 PM
When will the next official release be out with this fix?  My company does not want me to use an internal release.

Thanks!
...Ed
0
Valentin.Stoychev
Telerik team
answered on 29 Sep 2009, 01:24 PM
Hello Ed,

It will be at the beggining of November.

Best wishes,
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
BlogReader
Top achievements
Rank 1
answered on 29 Sep 2009, 04:39 PM
I am using 2009.2.812.1030. I will try with the latest dev version available to us(2009.2.0925)
0
Martin Hollingsworth
Top achievements
Rank 1
answered on 26 Nov 2009, 09:44 PM
I am using a trial version 2009.3.1103.1030 of the Silverlight Controls and it looks like I am still having the problem.

If I host the the RadHtmlPlaceholder in a System.Windows.Controls.Page (c:\Program Files\Microsoft SDKs\Silverlight\v3.0\Libraries\Client\System.Windows.Controls.dll) derived page the content is visible.

If I host it in a System.Windows.Controls.ChildWindow (also from the SL3 SDK) derived page it is not visible. If I use Firebug to view the actuall HTML Source I can see that the iframe and content is present in the HTML DOM but it is not visible.

I've looked at another posting regarding this issue and checked the sample app you provided but it does not use the ChildWindow as I would expected. I expect to be able to use the ChildWindow using the code

 

var businessObject = (BusinessObject)BussinessObjectDataForm.CurrentItem;

 

var myChildWindow = new MyChildWindow("My Title", businessObject.About);

 

myChildWindow.Closed += myChildWindow_Closed;

myChildWindow.Show();

 


Setting Application.RootVisual = new MyChildWindow() as shown in the sample is not correct use of the ChildWindow control.

I am going to try and use your RadWindow control to get my requirement working but this thread gives the impression that this bug with the ChildWindow should be fixed in the build I have.

What is the status of this bug?
0
Bobi
Telerik team
answered on 27 Nov 2009, 10:58 AM
Hello Martin Hollingsworth,

Thank you for the feedback. Unfortunately RadHtmlPlaceHolder is not working correctly in ChildWindow in the current officially released  Q3 version of our controls (although it is working correctly with
version :2009.2.1002.1030 from the Q2 release).
However this issue is added in our to do list and will be fixed for the next major release. We apologize for the caused inconvenience. We advice you to use RadWindow instead if possible.

The important things is that when you host RadHtmlPlaceHolder into a RadWindow you will need to invalidate the arrange of the placeholder, when the location of the RadWindow changes:

public HtmlPlaceHolderInChildWindowTestUserControl()
        {
            InitializeComponent();
            this.LocationChanged += new System.Windows.RoutedEventHandler(radWindow_LocationChanged);    
        }

        void radWindow_LocationChanged(object sender, System.Windows.RoutedEventArgs e)
        {
            this.InvalidateArrange();
        }
Please find attached a sample project that demonstrates the usage of HtmlPlaceHolder in a RadWindow .
I hope that this will help you.
Please let us know if you have any other questions or you need some more help.


Best wishes,
Boryana
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
Robert
Top achievements
Rank 1
answered on 09 Feb 2010, 10:22 PM

Tags
HTMLPlaceHolder
Asked by
Ed
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
BlogReader
Top achievements
Rank 1
Ed
Top achievements
Rank 1
Martin Hollingsworth
Top achievements
Rank 1
Bobi
Telerik team
Robert
Top achievements
Rank 1
Share this question
or