Rad Menu Problem to Get Text on item click

2 posts, 0 answers
  1. Arsalan
    Arsalan avatar
    17 posts
    Member since:
    Sep 2013

    Posted 16 Jul 2014 Link to this post

    hey everyone
    i have a rad menu and rad menu bind with xml you can see that and consist of master page. i want to get text rad menu click but problem is that rad OnItemClick event does not fire and  event is consist of masterpage.cs

        <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Horizontal" DataSourceID="xmlDataSource"
                Font-Size="24px" Font-Names="Segoe UI" ForeColor="#333399" Font-Bold="False"
                BorderWidth="0px" Border-radius="5px" StaticSubMenuIndent="10px" StaticDisplayLevels="1"
                Orientation="Horizontal" DynamicHorizontalOffset="0" Width="100%" Style="text-align: left;
                margin-top: -3px;" OnItemClick="RadMenu1_ItemClick">
                    <telerik:RadMenuItemBinding runat="server" TextField="Text" DataMember="MenuItem"
                        NavigateUrlField="NavigateUrl" ToolTipField="ToolTip" />
            <asp:XmlDataSource ID="xmlDataSource" TransformFile="~/scripts/TransformXSLT.xsl"
            runat="server" EnableCaching="false" /> 

    this is code behind

       protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
            string aa = e.Item.Text;

    please help what should i do to solve this problem..

    Thanks In Advance  

  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 18 Jul 2014 Link to this post

    Hi Arsalan,

    This code looks good. Please verify that there are no javascript errors.

    Hristo Valyavicharski

    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. DevCraft R3 2016 release webinar banner
Back to Top