Rad Grid Context Menu not showing up

2 posts, 0 answers
  1. Neetha
    Neetha avatar
    36 posts
    Member since:
    Feb 2014

    Posted 04 Apr 2014 Link to this post

    I added Rad Content Menu to Rad grid but when i right click on Grid rows i don't see the menu coming up. Do i have to enable anything ? Please let me know.

    Here is my code:

    <script type="text/javascript">
             function RowContextMenu(index, e)
                 var menu = $find("<%=RadMenu1.ClientID %>");
                  var evt = eventArgs.get_domEvent();
                 var menuItem = menu.findItemByText("View");

      <telerik:RadGrid ID="RadGrid1" Width="60.5%" runat="server" OnNeedDataSource="radGrid_NeedDataSource"            
                             AutoGenerateColumns="false" GroupingSettings-GroupByFieldsSeparator="" AllowMultiRowEdit="true" OnItemDataBound="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender" ClientSettings-ClientEvents-OnColumnContextMenu="true" >
                <MasterTableView ShowGroupFooter="false" EditMode="InPlace" DataKeyNames="SalesPerson">
                     <telerik:GridBoundColumn UniqueName="Jt.Calls" DataField="Jt. Calls" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  ColumnGroupName="Monthly Activity" HeaderText="Jt. Calls" />
                     <telerik:GridBoundColumn UniqueName="Demos" DataField="Demos" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  ColumnGroupName="Monthly Activity" HeaderText="Demos" />

                <ClientEvents OnRowContextMenu="RowContextMenu" />           
                <Selecting AllowRowSelect="true" />
     <telerik:RadContextMenu ID="RadMenu1" runat="server" Skin="Vista" EnableRoundedCorners="true" EnableShadows="true" OnItemClick="RadMenu1_ItemClick">
                   <telerik:ContextMenuControlTarget ControlID="RadGrid1" />
                 <telerik:RadMenuItem Text="View"  />

  2. Plamen
    Plamen avatar
    2959 posts

    Posted 07 Apr 2014 Link to this post


    In such scenarios in order to prevent duplicating conversations I will recommend you to refer to this forum thread.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top