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

Radgridview contextmenu not working in the latest version

3 Answers 184 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gita
Top achievements
Rank 1
Gita asked on 11 Oct 2011, 04:55 PM

Hello Team,
We are upgrading the telerik controls to q2 2011 version. In the previous version the Radgridview right click contextmenu was working fine, but not now. What do I have to change in the below code to get the popup menu when I right click the selected row?
Let me know.

Thanks

<telerik:RadGridView.ContextMenu
    <ContextMenu IsVisibleChanged="ContextMenu_IsVisibleChanged"
        <MenuItem Header="Export To Excel" Command="Commands:GlobalCommands.ExportGridToExcel" 
                  CommandParameter="{Binding Path=PlacementTarget, RelativeSource={RelativeSource AncestorType={x:Type ContextMenu}}}"/> 
        <MenuItem Header="Export To Word" Command="Commands:GlobalCommands.ExportGridToWord"
                  CommandParameter="{Binding Path=PlacementTarget, RelativeSource={RelativeSource AncestorType={x:Type ContextMenu}}}"/> 
    </ContextMenu
</telerik:RadGridView.ContextMenu>

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 11 Oct 2011, 05:22 PM
Hello Gita,

I have tested the case and everything works as expected on my side. Would you take a look at the sample attach to verify whether you can reproduce the behavior on it ?
 

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Gita
Top achievements
Rank 1
answered on 12 Oct 2011, 12:25 AM
Hello Team,
I checked out your sample project and it is working fine. Same code only I am having it in my screen.
It is basically coming up with default popup menu (contains Floating,Dockable,Tabbed document,Auto hide, hide)

This standard popup menu is overriding my popup menu(Export to Excel...). I am getting this popup menu not only in the gridview,
in the whole screen. Anywhere it  is coming when I right click.

I tried to attache the image/screenshot for you, but didn't know how to attach the image in the forum.

Please let me know the solution for this.

Thanks




0
Gita
Top achievements
Rank 1
answered on 13 Oct 2011, 05:45 PM
Hello Team,

Throught out all the screens everywhere I am getting this default right click popup menu. It contains Floating,Dockable,Tabbed Document, Auto Hide,Hide.

This is overiding my Radigridview popup menu. I didn't have any problem in the older version. Which control has the default right click pop up option? 

Any help?

Thanks
Tags
GridView
Asked by
Gita
Top achievements
Rank 1
Answers by
Maya
Telerik team
Gita
Top achievements
Rank 1
Share this question
or