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

Radwindow bombs when using combobox or listbox

3 Answers 147 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tolga
Top achievements
Rank 1
Tolga asked on 12 May 2009, 06:28 PM
I have a Radwindows using a RadCombobox. Just clicking on the combo causes a fatal error here is the error code...

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)
Timestamp: Tue, 12 May 2009 18:28:13 UTC

Message: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1': System.Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
   at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
   at System.Windows.UIElement.TransformToVisual(UIElement visual)
   at Telerik.Windows.Controls.PopupWrapper.GenerateClippingRegion()
   at Telerik.Windows.Controls.PopupWrapper.ShowPopup()
   at Telerik.Windows.Controls.RadComboBox.OnIsDropDownOpenChanged(Boolean oldValue, Boolean newValue)
   at Telerik.Windows.Controls.RadComboBox.OnIsDropDownOpenChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
   at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object newValue, Object oldValue)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.RadComboBox.set_IsDropDownOpen(Boolean value)
   at Telerik.Windows.Controls.RadComboBox.DropDownButtonClick(Object sender, RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Primitives.ToggleButton.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonDown(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Line: 453
Char: 17
Code: 0
URI: http://localhost:1000/DesignDBv3_Web/ScriptResource.axd?d=LYH1VbxcqgAwtFqPxnsQfMtxRRvaV00dRscEZE7WMnZX0wRGiCEhNk-vsmVnYTk8bLk4b9r9akNXxeFC_myi9Q2&t=6223f9b0

 

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 13 May 2009, 10:34 AM

Hi Tolga,

Try opening RadWindow in the Page.Loaded event, instead of the page constructor. This usually fixes the problem:

public partial class SilverlightControl1 : UserControl
{
 public SilverlightControl1()
 {
  InitializeComponent();

  this.Loaded += new RoutedEventHandler(SilverlightControl1_Loaded);
  // window1.Show();
 }

 void SilverlightControl1_Loaded(object sender, RoutedEventArgs e)
 {
  window1.Show();
 }
}



If this does not help, please, open a new support ticket and send us a simple application that can be used to reproduce the problem and we will respond with a solution as soon as possible.

Greetings,

Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
david
Top achievements
Rank 1
answered on 08 Jul 2009, 11:51 AM
I have the same error, when I try to open a RadWindow with a usercontrol

on the Page I load a user control with a button, the button will open a RadWindow with
a usercontrol that contains a combobox.
When the window is opened and I click the combobox the error occurs

I'm using the latest version of the silverlight controls

David.
0
Hristo Borisov
Telerik team
answered on 08 Jul 2009, 12:45 PM
Hi David,

Would you send us a code snippet that demonstrates the issue as we are not able to face this problem in our test case scenarios. Thank you for contacting us, and we look forward to receiving a sample project in which we can investigate your issue.

Greetings,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Tolga
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
david
Top achievements
Rank 1
Hristo Borisov
Telerik team
Share this question
or