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

RadGrid Contextual Menu on Mac (FF and Safari)

3 Answers 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thomas E
Top achievements
Rank 1
Thomas E asked on 02 Oct 2013, 02:29 AM
Hello,

I've implemented the RadGrid contextual menu on a RadGrid and it works fine on PC. When I right click on MAC, the menu appears for a brief time but the page postbacks before I can select an Item.

Here is code I've implemented.

Thanks in advance for your help.
Thomas

<telerik:RadGrid ID="radGridDocumentLibrary" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Width="100%"

OnRowDrop="grdPendingDocuments_RowDrop" Skin="docTable" EnableEmbeddedSkins="false" AllowSorting="True" OnSortCommand="radGridDocumentLibrary_SortCommand">

<ClientSettings AllowRowsDragDrop="true">

<Selecting AllowRowSelect="true" />

<ClientEvents OnRowDragStarted="applyCursor" OnRowDropped="removeCursor" OnRowSelected="removeCursor" />

</ClientSettings>

<MasterTableView DataKeyNames="DocumentID" NoMasterRecordsText="Meeting Document Library is Empty - Upload Documents To Add to Your Board Book" ShowHeader="true">

<Columns>

<telerik:GridTemplateColumn HeaderText="Name" ShowSortIcon="true" SortExpression="DocumentName" SortAscImageUrl="../img/uarrow.gif" SortDescImageUrl="../img/darrow.gif">

<ItemStyle CssClass="docCell dragDroppable" />

<ItemTemplate>

<span>

<i class="icon-file"></i>

<asp:Label ID="lblDocumentName" runat="server" Text='<%# Eval("DocumentName") %>' CssClass="docInSection"></asp:Label></span>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn HeaderText="Date" ShowSortIcon="true" SortExpression="SortDate" SortAscImageUrl="../img/uarrow.gif" SortDescImageUrl="../img/darrow.gif">

<HeaderStyle CssClass="rgHeader docDate" />

<ItemStyle CssClass="docCell docCellDate" />

<ItemTemplate>

<asp:Label ID="lblDocDate" runat="server" Text='<%# Convert.ToDateTime(Eval("DocumentDate").ToString()).ToShortDateString() %>' CssClass="docInSection"></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

<SortingSettings SortedBackColor="Azure" EnableSkinSortStyles="false"></SortingSettings>

<ClientSettings AllowRowsDragDrop="True">

<Selecting AllowRowSelect="true" EnableDragToSelectRows="false"></Selecting>

<ClientEvents OnRowDropping="onRowDroppingDL"></ClientEvents>

<ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>

</ClientSettings>

</telerik:RadGrid>

<telerik:RadContextMenu ID="RadMenu1" runat="server" OnItemClick="RadMenu1_ItemClick"

EnableRoundedCorners="true" EnableShadows="true">

<Items>

<telerik:RadMenuItem Text="Replace">

</telerik:RadMenuItem>

<telerik:RadMenuItem Text="Rename">

</telerik:RadMenuItem>

<telerik:RadMenuItem Text="Delete">

</telerik:RadMenuItem>

<telerik:RadMenuItem Text="View">

</telerik:RadMenuItem>

</Items>

</telerik:RadContextMenu>


3 Answers, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 04 Oct 2013, 01:54 PM
Hello,

Attached you can see a sample project, which works as expected on my end. I tested it on FireFox 23.0.1. and Safari 6.0.5 on Mac.
Could you please test the same example and let me know what I am missing?
Regards,
Milena
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Thomas E
Top achievements
Rank 1
answered on 04 Oct 2013, 03:18 PM
Is it proper behavior for the page to postback when you rightclick?

THanks
Thomas
0
Milena
Telerik team
answered on 09 Oct 2013, 10:04 AM
Hello,

It is not expected behavior postback to be performed when right click on the grid, however I am not able to replicate this behavior on my end. Could you verify that the same behavior can be observed while testing the sample project from my previous post?

Regards,
Milena
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Thomas E
Top achievements
Rank 1
Answers by
Milena
Telerik team
Thomas E
Top achievements
Rank 1
Share this question
or