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

Q3 and Row ContextMenu

4 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 04 Nov 2009, 06:05 PM
I think I found a small bug in the gridview refresh mechanism.

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

Sort by
0
Kaloyan
Telerik team
answered on 11 Nov 2009, 09:40 AM
Hi Subileau Pascal,

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.
0
Deepak Subhedar
Top achievements
Rank 1
answered on 30 Nov 2009, 12:22 AM
Hi Telerik Support Team,

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);

 

 

}

}

 

 

0
Kaloyan
Telerik team
answered on 02 Dec 2009, 12:58 PM
Hello Deepak Subhedar,

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.
0
Deepak Subhedar
Top achievements
Rank 1
answered on 02 Dec 2009, 06:12 PM
Issue is fixed in internal build. But I am scared to use your controls as something which was working was broken in official build.
Which means I have to retest all of my application and can never come out of this loop.

Deepak
Tags
GridView
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Deepak Subhedar
Top achievements
Rank 1
Share this question
or