Dynamically assign NavigateUrl in markup

2 posts, 1 answers
  1. Jonathan
    Jonathan avatar
    12 posts
    Member since:
    Apr 2013

    Posted 11 Oct 2013 Link to this post


    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?


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

  2. Answer
    Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 16 Oct 2013 Link to this post

    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.

    Dimitar Terziev
    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.
Back to Top