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

Context Menu of RadGridView is not being displayed inside RadPane

5 Answers 94 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 24 Mar 2011, 06:51 PM

Hi,

I have a RadGridView inside RadPane and RadGridView has a context menu. If RadPane is in autohide state and I right click on RadGridView to open context menu, context menu is opened but RadPane gets collapsed and hence context menu also gets closed.

I will be very thankful if anyone can provide solution for this problem.

5 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 29 Mar 2011, 10:23 AM
Hi Nitin,

When the Pane in expanded from the autohide area and loses the focus it gets collapsed. That is by design. We have logged a feature request for customizing the auto hide area events, which you can view here. You can vote for it, track its status and see when it is going to be implemented.

Hope this information helps. Please let us know if you have any other questions.

All the best,
Konstantina
the Telerik team
0
Michael Blanchet
Top achievements
Rank 1
answered on 13 Jul 2011, 01:27 AM
I have a more general issue with RadPane context menus. When the RadPane is not started in the central docking position, the context menu will sometimes appear in random places (or not at all). This seems to be more of a problem if the RadPane is initially unpinned and then pinned.
0
Konstantina
Telerik team
answered on 18 Jul 2011, 07:21 AM
Hello Michael,

Could you please elaborate on this issue? Could you pleas share with us which version of the controls are you using, is the Docking control placed in other control and anything that you find essential. Also, sending us a sample project in which we can observe the issue will be very helpful.

Looking forward to your reply.

Kind regards,
Konstantina
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!

0
Michael Blanchet
Top achievements
Rank 1
answered on 22 Jul 2011, 01:41 PM
Hello Konstantina

I am now using the .Net 4 version of the Q2 2011 WPF controls and the behavior has changed somewhat.

The docking control is in the main window of the application. By the way, with the Q2 release of the RadDocking, the PreviewWindowClose seems to have disappeared. 

I add a RadSplitContainer and set the InitialPosition to DockedRight and then add a RadPaneGroup to that to which I add my RadPane.

For the context menu, I was simply using a  RadPane.ContextMenuTemplate. If I tried to open the context menu by right clicking on the Pane after opening it, I get a 'UI Unhandled Exception: System.InvalidOperationException: The specified visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals.
 
I tried to resolve the problem by changing the XAML to remove the standard context menu from the RadPane with ContextMenuTemplate="{x:Null}" and then adding the context menu directly. It behaves the same way.

If I unpin the RadPane and then re-pin it, the context menu works fine.

Thanks,
Michael
0
Konstantina
Telerik team
answered on 26 Jul 2011, 02:17 PM
Hi Michael,

I am afraid I wasn't able to reproduce the error. Attached I am sending you the test project I used. Please feel free to edit it in order to reproduce the issue and send it back to us. In that way we will be able to track down the source of the problem in a timely manner.

Looking forward to your reply.

Greetings,
Konstantina
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
Docking
Asked by
Nitin
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Michael Blanchet
Top achievements
Rank 1
Share this question
or