Hi All,
I have a RadGrid for which the Radmenu is attached as context menu.
The grid displays the data
and when i click on the Grid a context menu is displayed and when i click on the item of the menu the server side event doesn't get fired.
Please look at my code .aspx and .vb and let me know where my code goes wrong
<radM:RadMenu ID="mnuCompanyContact" runat="server" IsContext="True" OnClientItemClicking="OnClientItemClickedHandler"
ContextMenuElementID="none" Skin="eRebalContextMenu" OnItemDataBound="mnuCompanyContact_ItemDataBound" OnItemClick="mnuCompanyContact_ItemClick" Height="73px" Width="119px">
<Items>
<radM:RadMenuItem ID="RadMenuItem10" runat="server" Text="Copy">
</radM:RadMenuItem>
<radM:RadMenuItem ID="RadMenuItem8" runat="server" Text="View/Edit Contact">
</radM:RadMenuItem>
<radM:RadMenuItem ID="RadMenuItem5" runat="server" Text="Add">
</radM:RadMenuItem>
<radM:RadMenuItem ID="RadMenuItem11" runat="server" Text="Delete">
</radM:RadMenuItem>
</Items>
</radM:RadMenu>
the event handler mnuCompanyContact_ItemClick doesn't gets called at all.
.vb
Protected Sub mnuCompanyContact_ItemClick(ByVal sender As Object, ByVal e As Telerik.WebControls.RadMenuEventArgs) Handles mnuCompanyContact.ItemClick
Try
If e.Item.Text.ToString.ToUpper = "COPY" Then
GetComPanyContact(hdnCompanyId.Value)
ElseIf e.Item.Text.ToString.ToUpper = "VIEW/EDIT CONTACT" Then
GetComPanyContact(hdnCompanyId.Value)
ElseIf e.Item.Text.ToString.ToUpper = "ADD" Then
GetComPanyContact(hdnCompanyId.Value)
ElseIf e.Item.Text.ToString.ToUpper = "DELETE" Then
DeleteCompanyContact(hdnContactID.Value)
End If
Catch ex As Exception
'TODO: Error Handler
CUtility.PageErrorHandler(Err.Number, ex, "Event mnuCompanyContact_ItemClick")
End Try
End Sub
Regards
Sudha