when I have a RadComboBox ( DataSource is ObjectView ) on a RadSplitContainer it works, until I close the Solution. When I reopen the solution, run the program and I want to expand the ComboBox, I get an InvalidOperationException "Element already added". Only if I completely delete the ComboBox and create a new one, it works until I close and open the solution again.
WinControls-Version is 2010.1.10.308
OpenAccess-Version is 2010.1.310.2
Regards
Roland
i found, that, if I make one or more copies (<Ctrl>C, <Ctrl>V ) of the RadComboBox or if I move the ComboBox to a Windows, which is not a SplitContainer, it works. The error occurs alwas in the first ComboBox in the SplitContainer. If I delete the CombBox, where the error happens, the error happens on the next ComboBox.
here the exception-detail:
System.InvalidOperationException wurde nicht behandelt.
Message=
"Element already added"
Source=
"Telerik.WinControls"
StackTrace:
bei Telerik.WinControls.RadElementCollection.CheckElementAlreadyAdded(RadElement element)
bei Telerik.WinControls.RadElementCollection.OnInsert(Int32 index, Object value)
bei System.Collections.CollectionBase.System.Collections.IList.Add(Object value)
bei Telerik.WinControls.RadElementCollection.Add(RadElement value)
bei Telerik.WinControls.MeasurementControl.GetDesiredSize(RadElement element, SizeF availableSize)
bei Telerik.WinControls.UI.RadComboBoxElement.GetInitialPopupSize()
bei Telerik.WinControls.UI.PopupEditorBaseElement.ShowPopup()
bei Telerik.WinControls.UI.RadComboBoxElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)
bei Telerik.WinControls.RadElement.CallDoMouseDown(MouseEventArgs e)
bei Telerik.WinControls.ComponentInputBehavior.OnMouseDown(MouseEventArgs e)
bei Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei Telerik.WinControls.RadControl.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(Form mainForm)
bei GUI1.Program.Main()
in C:\Projekte\Test\3TierArchitectur2\GUI1\Program.cs:Zeile 18.
bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bei System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
bei System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
bei System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
bei System.Activator.CreateInstance(ActivationContext activationContext)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
InnerException: