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

RadComboBox on SplitContainer

1 Answer 140 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 22 Mar 2010, 01:50 PM
Hello,

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:

 




1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 25 Mar 2010, 01:33 PM
Hello Roland,

Thank you for the feedback. I could not reproduce the issue, but I have a rather good idea where the code misbehaves. 

Please send a small sample application which demonstrates the issue if possible. 

The fix I have added will be available in Q1 2010 Service Pack 1 scheduled for the first half of the next month. In the mean time you can set the Virtualized property of RadComboBox to false and see if this helps.

I am looking forward to your reply. Your Telerik points have been updated for the bug report.

Greetings,
Victor
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
SplitContainer
Asked by
Roland
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or