I have a question about RadMenu put in RadGrid.

5 posts, 1 answers
  1. peter huynh
    peter huynh avatar
    7 posts
    Member since:
    Nov 2009

    Posted 27 Apr 2010 Link to this post

    Hi Admin.
    The same Ex: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx
    But i want to use RadMenu with RadMenuItems  the same Ex: http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/templates/defaultcs.aspx
    not use RadContextMenu. Can you help me?.
    Thanks!

  2. Yana
    Admin
    Yana avatar
    4850 posts

    Posted 29 Apr 2010 Link to this post

    Hi peter huynh,

    You need to use RadContextMenu with templates, is that the requirement? Please explain in more details the scenario? Thanks

    All the best,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. peter huynh
    peter huynh avatar
    7 posts
    Member since:
    Nov 2009

    Posted 03 May 2010 Link to this post

    Now, I use RadMenu put in RadGrid:

    <telerik:RadGrid ID="RadGrid" runat="server" AutoGenerateColumns="False" 

     

    GridLines="Horizontal" OnItemDataBound="RadGrid_DataBound" AllowSorting="True" PageSize="50"  

     

     

    AllowPaging="True" OnItemCommand="RadGrid_ItemCommand" AllowCustomPaging="True"> 

    <

     

    Columns>

     

    <telerik:GridTemplateColumn ItemStyle-Width="50px">

     

        <ItemTemplate>
            <Telerik:RadMenu id="RadMenu1" runat="server"

     

                EnableRoundedCorners="true" EnableShadows="true">  

     

     

     

     

                        <telerik:RadMenuItem Text="Rad Menu Parent">

     

                                <Items>

     

                                        <telerik:RadMenuItem Text="Rad Menu Item 1"> 

     

     

                                                    <ItemTemplate>

     

                                                            <asp:Button runat="server" ID="btA" Text="Button A" />  

     

     

                                                    </ItemTemplate>

     

                                        </telerik:RadMenuItem 

     

     

                                        <telerik:RadMenuItem Text="Rad Menu Item 2" >

     

                                                    <ItemTemplate>

     

                                                             <asp:Button runat="server" ID="btB" Text="Button B" />

     

                                                    </ItemTemplate 

     

     

                                        </telerik:RadMenuItem>

     

                                        <telerik:RadMenuItem Text="Rad Menu Item 3" >

     

                                                    <ItemTemplate>

     

                                                              <asp:Button runat="server" ID="btC" Text="Button C" />

     

                                                    </ItemTemplate>

     

                                        </telerik:RadMenuItem>
                                </Items>

     

                        </telerik:RadMenuItem>  

     

     

     

                </Items>

     

            </Telerik:RadMenu> 

     

     

        </ItemTemplate> 

     

     

    </telerik:GridTemplateColumn 

     

     

    </Columns>

     

     

    </MasterTableView>
    </telerik:RadGrid>

     

     

    But it has an error with list RadMenuItem. The RadMenuItems("Rad Menu Item 1", "Rad Menu Item 2", "Rad Menu Item 3") show under row of RadGrid. So i don't see any Button("Button A", "Button B", "Button C") when i onmouseover "Rad Menu Parent". 
  4. Answer
    Yana
    Admin
    Yana avatar
    4850 posts

    Posted 06 May 2010 Link to this post

    Hello Peter,

    I've tested the provided code and it works without a problem, please check the attached screenshot.

    Regards,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. peter huynh
    peter huynh avatar
    7 posts
    Member since:
    Nov 2009

    Posted 12 May 2010 Link to this post

    Sorry Yana. Because i had a report with my teacher, so i didn't replay soon. I think that my code has a problem at code CSS.
    Thanks for help!
Back to Top