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

Window Error

1 Answer 47 Views
Window
This is a migrated thread and some comments may be shown as answers.
Scott Rakestraw
Top achievements
Rank 1
Scott Rakestraw asked on 04 Dec 2009, 08:59 PM
I have a user control with a radwindow on it.  In the content of that window is a button named btnSave.  On my page that is the parent of the user control I also have a button named btnSave.  I get the following error.  Shouldn't the usercontrol be it's own name scope?

Microsoft JScript runtime error: Unhandled Error in Silverlight 3 Application Value does not fall within the expected range.   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 Silverlight.UQube.AddListItem.Show()
   at Silverlight.UQube.MediaPlan.menuLists_ItemClick(Object sender, RadRoutedEventArgs e)
   at Telerik.Windows.Controls.MenuBase.OnItemClick(RadRoutedEventArgs args)
   at Telerik.Windows.Controls.MenuBase.OnItemClick(Object sender, RadRoutedEventArgs args)
   at Telerik.Windows.RadRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
   at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
   at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
   at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
   at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
   at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
   at Telerik.Windows.Controls.RadMenuItem.OnClickImpl()
   at Telerik.Windows.Controls.RadMenuItem.OnClick()
   at Telerik.Windows.Controls.RadMenuItem.ClickItem()
   at Telerik.Windows.Controls.RadMenuItem.HandleMouseUp()
   at Telerik.Windows.Controls.RadMenuItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 10 Dec 2009, 08:14 AM
Hello Scott,

We will be glad to assist you further, but we will need some more information. Please open a support ticket and send us a sample running project to test it locally. Thus, we will be able to provide more to-the-point reply.

Kind regards,

Konstantina
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Scott Rakestraw
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or