RadHtmlPlaceHolder will crash if use with RadExpander

4 posts, 0 answers
  1. zhang pei
    zhang pei avatar
    2 posts
    Member since:
    Jan 2010

    Posted 21 Apr 2010 Link to this post

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

  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 26 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. Scott
    Scott avatar
    5 posts
    Member since:
    Jun 2006

    Posted 09 Jul 2010 Link to this post

    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
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 14 Jul 2010 Link to this post

    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
Back to Top