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

[Solved] Open links in new windows

5 Answers 426 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Megan
Top achievements
Rank 1
Megan asked on 19 Sep 2008, 02:07 PM
I have a RadMenu that's populated with a datasource control.

I want to open the page links in new windows. Is this possible with RadMenu?

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 19 Sep 2008, 02:13 PM
Hi Megan,

Yes, it is possible. Please add a RadMenuItemBinding whose Target property is set to "_blank". Consider the following example as a reference:

<telerik:RadMenu ID="RadMenu1" runat="server">
    <DataBindings>
            <telerik:RadMenuItemBinding Target="_blank" />
    </DataBindings>
</telerik:RadMenu>

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Megan
Top achievements
Rank 1
answered on 19 Sep 2008, 03:00 PM
Hmm, nothing seems to happen when I click on the links. The hover button remains 'indented'...
0
Atanas Korchev
Telerik team
answered on 19 Sep 2008, 03:25 PM
Hello Megan,

In order for the items to navigate you need to set their NavigateUrl property first. In databinding scenarios you can use the DataNavigateUrlField property of the menu to specify the database field which contains the urls. Could you verify that you have correctly set up the NavigateUrl of your menu items?

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paolo Lo Presti
Top achievements
Rank 1
answered on 12 May 2009, 05:28 PM
I need to open a new window for some item and open in the same window for others. It is possible to configure with the rad Menu from an access to db (a field can define this)?
0
Atanas Korchev
Telerik team
answered on 15 May 2009, 04:15 PM
Hello Paolo Lo Presti,

You can use a databinding to tell which database column provides data for the Target property

<telerik:RadMenu>
     <DataBindings>
           <telerik:RadMenuItemBinding TargetField="TargetColumn" />
     </DataBindings>
</telerik:RadMenu>

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Menu
Asked by
Megan
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Megan
Top achievements
Rank 1
Paolo Lo Presti
Top achievements
Rank 1
Share this question
or