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

RadHtmlPlaceHolder will crash if use with RadExpander

3 Answers 78 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
zhang pei
Top achievements
Rank 1
zhang pei asked on 21 Apr 2010, 09:48 AM

I found RadHtmlPlaceHolder control will crash if use with RadExpander. I create a small application to dup this error. Please see demo code.

If I expand the button on Tab1 and then quickly switch between tabs for several times. The application will more and more slow. Finally the error will happen.

If I use textBlock instead of RadHtmlPlaceHolder, the application will run correctly.

Any suggestions?

Thanks.

XAML:

 

<UserControl x:Class="SilverlightApplication1.MainPage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    d:DesignHeight="400" d:DesignWidth="600" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">  
 
    <Grid x:Name="LayoutRoot" Background="White" Height="402" Width="641">  
        <controls:TabControl Height="249" HorizontalAlignment="Left" Margin="29,28,0,0" Name="tabControl1" VerticalAlignment="Top" Width="350" SelectionChanged="tabControl1_SelectionChanged">  
            <controls:TabItem Header="tabItem1" Name="tabItem1">  
            </controls:TabItem> 
            <controls:TabItem Header="tabItem2" Name="tabItem2">  
            </controls:TabItem> 
        </controls:TabControl> 
    </Grid> 
</UserControl> 

C#:
namespace SilverlightApplication1  
{  
    public partial class MainPage : UserControl  
    {  
        public MainPage()  
        {  
            InitializeComponent();  
        }  
 
        private void tabControl1_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)  
        {  
            TabControl tc = sender as TabControl;  
            TabItem ti = tc.SelectedItem as TabItem;  
            Grid gr = new Grid();  
            RadExpander ex = new RadExpander();  
            ex.Header = "TestHeader";  
 
            RadHtmlPlaceholder html = new RadHtmlPlaceholder();  
            html.HtmlSource = "testHtmlSource";  
            ex.Content = html;  
 
            //TextBlock tb = new TextBlock();  
            //tb.Text = "testtextBlock";  
            //ex.Content = tb;  
 
            gr.Children.Add(ex);  
            ti.Content = gr;  
 
        }  
    }  

3 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 26 Apr 2010, 10:00 AM
Hello Zhang,

Thank you for reporting this issue. We are not sure what is causing the issue but we will investigate it and fix it as soon as possible. Unfortunately, I am not aware of an existing workaround so stay tuned for fixes and updates of RadHtmlPlaceholder. I've also added 1000 Telerik points to your account. Let me know if you have additional questions or comments on the topic.

Greetings,
Kiril Stanoev
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
Scott
Top achievements
Rank 1
answered on 09 Jul 2010, 03:09 PM
Hello,

I am having the same problem when it is placed in a RadPanelBarItem. Is this related and also a bug? Will this be fixed in the Q2 2010 release?

Thanks!

Scott
0
Kiril Stanoev
Telerik team
answered on 14 Jul 2010, 02:13 PM
Hi Scott,

We haven't had the chance to fix this issue. The cause for both problems is the same. I've logged this issue in our public issue tracking system under the name "RadHtmlPlaceHolder: Error HRESULT E_FAIL has been returned from a call to a COM component." and it will be available for tracking and voting tomorrow the latest. Please monitor the item for updates on this issue.

Best wishes,
Kiril Stanoev
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
Tags
HTMLPlaceHolder
Asked by
zhang pei
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Scott
Top achievements
Rank 1
Share this question
or