issues displaying clickable URL's

3 posts, 0 answers
  1. Chris Yoker
    Chris Yoker avatar
    411 posts
    Member since:
    Jul 2005

    Posted 01 Oct 2009 Link to this post

    hiya,

    I have a gridView which I'd like to convert to nice radMenu.I thought it'd have been easy, but I'm having difficulty.
    The gridView is bound and contains a ItemTemplate.

    (gridViewBegin)
    Columns
                asp:TemplateField HeaderText="Property" SortExpression="TableName"
                    ItemTemplate
                        asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("ListActionPath") %>'><%#Eval("DisplayName") %></asp:HyperLink
                    /ItemTemplate
                /asp:TemplateField
    (gridViewEnd)

    So far, I have this for my radMenu...

    (radMenuBegin)
    radM:RadMenu ID="Menu1" runat="server" Flow="Vertical"
    Items

    items
    (radMenuEnd)

    I can't figure out how to convert the "TemplateField " and  "itemTemplate" into their radMenu equivalents..Any ideas, I'm running out of time!

    Thanks,

    yogi
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2834 posts

    Posted 03 Oct 2009 Link to this post

    Hello,

    The RadMenu items have a NavigateUrl property and you don't need to use a template to use it for navigation. Please, refer to this help topic for instructions on how to populate this field from the database:

    http://www.telerik.com/help/aspnet-ajax/menu_databindingoverview.html

    Best wishes,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Chris Yoker
    Chris Yoker avatar
    411 posts
    Member since:
    Jul 2005

    Posted 06 Oct 2009 Link to this post

    hiya,

    I solved it with the following code:
     e.Item.NavigateUrl = (string)DataBinder.Eval(e.Item.DataItem, "ListActionPath");


Back to Top