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

Context Menu in RadGridView in ChildWindow

1 Answer 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 21 Mar 2011, 06:04 PM
Hello. We are using Telerik version 2010.3.1415.1040. We have a RadGridView that is defined in a XAML file that is opened in a ChildWindow. The RadGridView has a context menu. Whenever we right click on an item in the RadGridView to bring up the context menu, the following exception is thrown:

   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 Telerik.Windows.Controls.RadContextMenu.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at Telerik.Windows.Controls.RadContextMenu.TriggerEventFired()
   at Telerik.Windows.Controls.RadContextMenu.OnEventTriggered(Object sender, EventArgs e)
   at Telerik.Windows.Controls.RadContextMenu.OnElementWithContextMenuMouseClick(Object sender, MouseButtonEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

We have two child windows where this is happening. This only happens when the RadGridView is in a ChildWindow. All the other RadGridViews outside of child windows have context menus, and they are working fine. Do you have any idea what could be causing this?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 23 Mar 2011, 09:31 AM
Hello Justin,

This problem is fixed in the Latest Internal Build.
You could use it or you could change ChildWindow with RadWindow. Both approaches will work.

Sorry for the caused inconvenience.

Kind regards,
Hristo
the Telerik team
Tags
GridView
Asked by
Justin
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or