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

issues displaying clickable URL's

2 Answers 49 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Chris Yoker
Top achievements
Rank 1
Chris Yoker asked on 01 Oct 2009, 01:53 PM
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 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 03 Oct 2009, 12:06 PM
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.
0
Chris Yoker
Top achievements
Rank 1
answered on 06 Oct 2009, 02:40 PM
hiya,

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


Tags
Menu
Asked by
Chris Yoker
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Chris Yoker
Top achievements
Rank 1
Share this question
or