When trying to add a context menu to a RadGridView, I have used the example code provided by Telerik, but am getting an error with the following statement:
rowContextMenu.AddHandler(RadMenuItem.ClickEvent, new RoutedEventHandler(OnMenuItemClick));
The error message is: "No overload for method 'AddHandler' takes '2' arguments"
So, I saw that the AddHandler method was expecting a third parameter (bool handledEventsToo), and although it said that the default value was false , it was requiring that I specify the value anyway. OK, so now I have the following statement, but a new error:
rowContextMenu.AddHandler(RadMenuItem.ClickEvent, new RoutedEventHandler(OnMenuItemClick), false);
Error Message 1: "Argument '1': cannot convert from 'Telerik.Windows.RoutedEvent' to 'System.Windows.RoutedEvent'"
At first, I thought I may not have have referenced all appropriate assemblies, but I have copied all references from the example code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Resources;
using System.Xml;
using System.Xml.Linq;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.GridView;
Has anyone else experienced this issue?
