Unhandled Exception in Editable ComboBox

5 posts, 1 answers
  1. Alex
    Alex avatar
    16 posts
    Member since:
    Oct 2009

    Posted 26 Apr 2010 Link to this post

    Hi there,

    I updateted to SL4 and the latest Version (2010.1.309.1030) of your controls. When I now Click on a editable ComboBox I get a unhandled exception:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
    Timestamp: Mon, 26 Apr 2010 10:59:09 UTC


    Message: Unhandled Error in Silverlight Application
    Code: 4004    
    Category: ManagedRuntimeError       
    Message: System.Windows.Markup.XamlParseException:  [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: The property 'System.Windows.Controls.Panel.Children' is set more than once. [Line: 725 Position: 36]
       bei MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
       bei MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
       bei MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
       bei System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.GetElementRoot(Boolean templatesAreGenerated)
       bei System.Windows.Controls.ItemContainerGenerator.LayoutStatesManager.Load()
       bei System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
       bei System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
       bei System.Windows.Controls.ItemsControl.AddContainers()
       bei System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr unmanagedObj)
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
       bei MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
       bei MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FrameworkElement frameworkElement)
       bei System.Windows.Controls.ScrollContentPresenter.HookupScrollingComponents()
       bei System.Windows.Controls.ScrollContentPresenter.OnApplyTemplate()
       bei System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)     

    Line: 62
    Char: 13
    Code: 0
    URI: http://localhost:4044/Default.aspx

    This is my Control:

    <TelerikInput:RadComboBox IsEditable="True" IsReadOnly="True"
                                             Telerik:TextSearch.TextPath="Description_Short"
                                             SelectedIndex="0"
                                             Height="25"
                                             DropDownClosed="cbLayout_DropDownClosed"
                                             KeyDown="cbLayout_KeyDown"
                                             x:Name="cbLayout">
                        <TelerikInput:RadComboBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Margin="0,3,0,3" Orientation="Horizontal">
                                    <TextBlock Text="{Binding Description_Short}"/>
                                    <TextBlock Text=" - "/>
                                    <TextBlock Text="{Binding Description_Long}"/>
                                </StackPanel>
                            </DataTemplate>
                        </TelerikInput:RadComboBox.ItemTemplate>
                    </TelerikInput:RadComboBox>

    Best Regards,
    Alex
  2. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 26 Apr 2010 Link to this post

    Hello Alex,

    Please, use our Silverlight 4 assemblies in Silverlight 4 applications. The Silverlight 4 XAML parser is more strict than the Silverlight 3 parser and XAML that used to work well in Silverlight 3, now throws exceptions.

    Kind regards,
    Valeri Hristov
    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. Alex
    Alex avatar
    16 posts
    Member since:
    Oct 2009

    Posted 26 Apr 2010 Link to this post

    Hi Valeri,

    thanks for the fast and right response.


  5. Prithwish Ghosh
    Prithwish Ghosh avatar
    4 posts
    Member since:
    Jul 2009

    Posted 17 May 2010 Link to this post

    Hello Mr. Hristov,

    I have Telerik's latest binaries that is binaries of Q1 2010 release. Still I am facing the same problem. From where will I find Silverlight 4 assemblies? Are these assemblies not included in Q1 2010 version?

    With regards,
    Prithwish
  6. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 18 May 2010 Link to this post

    Hi Prithwish,

    The Silverlight 4 assemblies are available here:
    http://www.telerik.com/account/downloads/product-versions/single-version.aspx?pmvid=2203&pid=0

    the trial versions are here:
    http://www.telerik.com/account/free-trials/trial-product-versions/single-trial.aspx?pmvid=0&pid=571

    Regards,
    Valeri Hristov
    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
DevCraft banner