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

Dynamically assign NavigateUrl in markup

1 Answer 93 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 11 Oct 2013, 01:42 PM
Hi

I wanted to set NavigateUrl values in my RadMenu in the markup in the following manner, but the click event never seem to happen.  Is this method not permissible for some reason?

Thanks

<telerik:RadMenuItem runat="server" Text="Current Campaign Home"  NavigateUrl='<%#  String.Format("~/childCampaignHome.aspx?campaignID={0}", Request.Params["CampaignID"]) %>' >
</telerik:RadMenuItem>


1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar Terziev
Telerik team
answered on 16 Oct 2013, 08:49 AM
Hi Jonathan,

The existence of this symbol "#" indicates that the following is a binding expression which will be evaluated when the control is data bound, so you should call the DataBind method of the RadMenu in order to valuate it.

Regards,
Dimitar Terziev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Menu
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or