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");
                menuItem.set_navigateUrl("SalesDashboard.aspx?userType=VP&amp;MetricYear=2014&amp;SalesPerson=IACORP\Jeff.Rodgers");
                menu.show(evt);
                }
         </script>
                                                        

      <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">
                                      
                    <Columns>              
                                
                     <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" />
                     
                    </Columns>

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






  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 07 Apr 2014 Link to this post

    Hello,

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

    Regards,
    Plamen
    Telerik
     

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top