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

Unhandled Exception in Editable ComboBox

4 Answers 60 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 26 Apr 2010, 12:00 PM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 26 Apr 2010, 12:05 PM
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.
0
Alex
Top achievements
Rank 1
answered on 26 Apr 2010, 12:25 PM
Hi Valeri,

thanks for the fast and right response.


0
Prithwish Ghosh
Top achievements
Rank 1
answered on 17 May 2010, 10:14 AM
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
0
Valeri Hristov
Telerik team
answered on 18 May 2010, 08:11 AM
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.
Tags
ComboBox
Asked by
Alex
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Alex
Top achievements
Rank 1
Prithwish Ghosh
Top achievements
Rank 1
Share this question
or