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

Problem with 2 or more ComboBoxes on a page

4 Answers 114 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 28 Jul 2008, 04:04 AM
hi there--

i'm new to silverlight, so i may be doing something wrong, but i'm having trouble with the design views in both VS and Expression Blend whenever i put more than one combobox on a page. it builds fine and loads fine in a browser, but in VS, it gives the following error:

Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.Windows.Media.Imaging.RenderTargetBitmap.Render(UIElement visual)
   at MS.Internal.Silverlight.Host.RuntimeInterop.RenderElementToTargetBitmap(Int32 elementKey, Int32 targetBitmapIdentifier)
   at MS.Internal.Silverlight.Host.Interop.RenderElementToTargetBitmap(Int32 element, Int32 targetBitmapIdentifier, ISilverlightContentDownloadCallback urlcallback)
   at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.UpdateBitmap()
   at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.UpdateTree()
   at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
a similar error appears in Expression Blend:

Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
at System.Windows.DependencyObject.MethodEx(String methodName, CValue[] cvData)
at System. Windows.UIElement.UpdateLayout()
note that i'm able to load (for example) 2 RadDatePickers or a RadComboBox and a RadDatePicker, but 2 RadComboBoxes gives me the error.

TIA for any help/suggestions!

jon

p.s. some sample code:

<UserControl xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"  x:Class="iplan.SilverlightControl1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="400" Height="300">
    <StackPanel>
        <my:RadComboBox></my:RadComboBox>
        <my:RadComboBox></my:RadComboBox>
    </StackPanel>
</UserControl>

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 31 Jul 2008, 08:05 AM
Hi Jonathan,

Thank you for reporting that bug. I managed to reproduce and fix it. The bug is related to our mouse wheel extension in design mode. We will be glad to receive further feedback about our Silverlight controls from you. Your points have been updated!

Greetings,
Valeri Hristov (Silverlight Team)
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jonathan
Top achievements
Rank 1
answered on 31 Jul 2008, 03:29 PM
ah great! good to know i'm not alone. is there something i can do to fix the problem (e.g., turn off the wheel extensions?) on my end? or will it be coming in a future release?

thanks!

jon
0
Valeri Hristov
Telerik team
answered on 31 Jul 2008, 03:46 PM
Hi Jonathan,

Unfortunately you can't fix the control without recompiling it. The fix will be included in our next release of RadControls for Silverlight. I can send you a preliminary build now, but I am afraid that there are too many other things changed and probably it will break something else. In the beginning of the next week we will post an update of RadControls in the forums, that will contain fixes for most of the reported bugs. I hope that this problem will not prevent you from playing with our other controls :)

Regards,
Valeri Hristov (Silverlight Team)
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jonathan
Top achievements
Rank 1
answered on 31 Jul 2008, 03:48 PM
oh no, early next week is fine with me :) thanks again!
Tags
ComboBox
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or