This question is locked. New answers and comments are not allowed.
Hello
I have a combo box. When selection is changed , i show a confirmation box. I use radwindow for this. The combo box resides on page. In the page load, i populate the combo box making a service call. If the page has an item selected, i would set it. When i set it, it would fire selectionchanged and confirmation box. When the confirmation box appears, it blows up
System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
at System.Windows.PresentationFrameworkCollection`1.Insert(Int32 index, T value)
at Telerik.Windows.Controls.HACKS.AttachPopupToVisualTree(Popup popup)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.OpenWindow(Popup popup, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, PopupType type, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, PopupType type)
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupSilverlightFactory.WindowPopupSilverlightImpl.Show()
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupSilverlightFactory.WindowPopupSilverlightImpl.OpenPopup()
at Telerik.Windows.Controls.RadWindowPopup.WindowPopup.Open(Boolean isModal)
at Telerik.Windows.Controls.RadWindow.ShowWindow(Boolean modal)
at Telerik.Windows.Controls.RadWindow.ShowDialog()
at Telerik.Windows.Controls.RadWindow.ConfigureModal(RadAlert content, DialogParameters dialogParams)
at Telerik.Windows.Controls.RadWindow.Confirm(DialogParameters dialogParameters)
This happens only the first time the page is loaded. When i dont make service call to populate, it works fine.
Thanks
I have a combo box. When selection is changed , i show a confirmation box. I use radwindow for this. The combo box resides on page. In the page load, i populate the combo box making a service call. If the page has an item selected, i would set it. When i set it, it would fire selectionchanged and confirmation box. When the confirmation box appears, it blows up
System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
at System.Windows.PresentationFrameworkCollection`1.Insert(Int32 index, T value)
at Telerik.Windows.Controls.HACKS.AttachPopupToVisualTree(Popup popup)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.OpenWindow(Popup popup, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, PopupType type, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, PopupType type)
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupSilverlightFactory.WindowPopupSilverlightImpl.Show()
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupSilverlightFactory.WindowPopupSilverlightImpl.OpenPopup()
at Telerik.Windows.Controls.RadWindowPopup.WindowPopup.Open(Boolean isModal)
at Telerik.Windows.Controls.RadWindow.ShowWindow(Boolean modal)
at Telerik.Windows.Controls.RadWindow.ShowDialog()
at Telerik.Windows.Controls.RadWindow.ConfigureModal(RadAlert content, DialogParameters dialogParams)
at Telerik.Windows.Controls.RadWindow.Confirm(DialogParameters dialogParameters)
This happens only the first time the page is loaded. When i dont make service call to populate, it works fine.
Thanks