This is a migrated thread and some comments may be shown as answers.

Rad Menu Problem to Get Text on item click

1 Answer 26 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Arsalan
Top achievements
Rank 1
Arsalan asked on 16 Jul 2014, 06:05 AM
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">
            <DataBindings>
                <telerik:RadMenuItemBinding runat="server" TextField="Text" DataMember="MenuItem"
                    NavigateUrlField="NavigateUrl" ToolTipField="ToolTip" />
            </DataBindings>
        </telerik:RadMenu>
        <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  









1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 18 Jul 2014, 10:51 AM
Hi Arsalan,

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

Regards,
Hristo Valyavicharski
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.

 
Tags
Menu
Asked by
Arsalan
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or