I have on my grid a context menu attached to each row.
If I open it on a random row, and then decide to choose another row and open its context menu, the first row remains selected and the first context menu remains open.
To remove the context menu, you need to choose one of its options, or right click on another row to select it, and then use the left click to open its own context menu.
It is kind of annoying.
I hope this behavious will soon be checked.
Regards
Ludovic
4 Answers, 1 is accepted
Please accept our apologies for the late response. Unfortunately we are not able to reproduce the problem mentioned by you. Are you getting the issue when using the latest Q3 2009 release. If so we will greatly appreciate you sending us a small app with the problem included in it.
All the best,
Kaloyan
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.
I am also experiencing similar issue. This was working ok prior to Q3 release.
attached is sample of my code.
void radGridView_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
{
if (!(e.Row is GridViewHeaderRow) && !(e.Row is GridViewNewRow))
{
RadContextMenu rowContextMenu = new RadContextMenu(); // create menu
StyleManager.SetTheme(rowContextMenu, StyleManager.GetTheme(radGridView)); // set menu Theme
// create menu items
rowContextMenu.Items.Add(
new RadMenuItem() { Header = LiteralText.GetNewMessage, Name="NewMessage"});
// If no messages - hide View and Delete options
if (!MessagePaneIsEmpty)
{
rowContextMenu.Items.Add(
new RadMenuItem() { Header = LiteralText.GetViewMessage, Name = "ViewMessage" });
rowContextMenu.Items.Add(
new RadMenuItem() { Header = LiteralText.GetDeleteMessage, Name = "DeleteMessage" });
}
// add menu events
rowContextMenu.AddHandler(
RadMenuItem.ClickEvent, new RoutedEventHandler(OnMenuItemClick));
rowContextMenu.Opened +=
new RoutedEventHandler(rowContextMenu_Opened);
// attach menu
RadContextMenu.SetContextMenu(e.Row, rowContextMenu);
}
}
Sorry for the inconvenience caused. Can you confirm that the issue is appearing when using the assemblies from the latest internal build(2009.3.1127).
Greetings,
Kaloyan
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.
Which means I have to retest all of my application and can never come out of this loop.
Deepak