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

Context menu targets not honored in edit user control

1 Answer 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 02 Jul 2011, 06:40 PM
Good morning, oh Telerik Wizards that have saved me so much time with your quick and accurate responses...

I was really glad to see the new RadContextMenu. Already running in my test suite. Then came upon what I think is a problem... not sure.

I have a simple asp.net web page with a RadGrid. For editing, the RadGrid has a popup with a user control. This user control has a multipage with some more grids. Suddenly, when I right click on ANY control on the popup where I have not explicitly given a context menu with target, the popup menu from the ORIGINAL RadGrid pops up. I mean it pops up for combo boxes, labels, textboxes, tabs... everything where I have not explicitly given a right click context menu. Somehow it seems like the user control is passing the right click back to the original page ... I guess...

Am I misunderstanding the control? The event sequence? A bug? Any ideas?

Thanks.
Chris

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 07 Jul 2011, 09:07 AM
Hi Chris,

This may happen if you have specified your grid items to be the target of the RadContextMenu. The popup edit form in RadGrid is rendered inside the edit item that is created just below the data item you are editing. The popup and all the controls inside are rendered in this newly created row, even though the row itself may not be visible. If you attach the context menu to the row, any element inside the popup will catch the right click and cause the context menu to open. You may want to check that.

If this is not the case, we would need to look at some sample code related to RadGrid, it's popup form and the context menu, as well as any javascript you are using to wire up the context menu to the grid. In this case, consider sending us some code we can look at. Please use the code block in the editor to paste code into.

Greetings,
Veli
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or