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

Not Sure if this is a bug.

1 Answer 75 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 2
Jonathan asked on 27 Jun 2008, 08:23 AM
Hi there,

I just ported my old telerik controls (classic) to the new prometheus controls and discovered a weird behaviour with the new RadMenu when it's viewed on firefox 3 browser. I'm not sure if this happens on IE 7 as well because I havent tested it on IE yet.

Firefox allows you to open a page in a new tab by right-clicking on the link or clicking on the mouse's middle scroll button on a link. I noticed that if you have a RadMenu on a webpage and you left-click on one of the menu items, it will redirect you to the link but if you try to open the menu items on a new tab, it will load the same page on the new tab. This happens on all nodes in the RadMenu control whenever you try to load a page on a new tab.

For e.g.,

You have a simple web application that contains 1 master page file and 2 aspx files which are referenced to the master page file. and the RadMenu sits on the masterpage file.The nodes in the menu and referenced to the 2 aspx files such that the Menu displays 2 links.

WebForm1 | WebForm2

If you turn on debugging and is currently on WebForm1.aspx, it will show the RadMenu in the manner shown above..

now if you left-click on the WebForm2 link, The masterpage's page_load gets called first followed by the RadMenu's ItemClick event which redirects you current tab to WebForm2. This is followed by the loading of WebForm2's page_load and everything's fine and dandy...

However, if you did a right-click on the WebForm2 link and selected "Open Link in new tab" Or "Open Link in new Window" option. It will straight away just go to WebForm1's page_load instead of going to RadMenu's ItemClick event. As a result, you end up opening the same page on a new browser/page.

This means that the RadMenu's ItemClicked and OnItemClicked events dont get fired at all when you try to use the "Open link in a new Window" or "Open link in a new tab" feature...

Do you have any workarounds to this problem?








1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 2
answered on 30 Jun 2008, 01:53 AM
Hi there,

I just did a test with telerik's sample project (Binding RadMenu to SiteMapDataSource and using Postback) -->
http://www.telerik.com/community/code-library/submission/b311D-bbtbgt.aspx

and found that the OnItem_Click event does not fire when you try to open the menu item in a new tab/window. Does anyone have a workaround to this?

I used the following sample --> http://www.telerik.com/ClientsFiles/076201_Menu_SiteMap_ItemClick_AJAX(Prometheus).zip


Tags
Menu
Asked by
Jonathan
Top achievements
Rank 2
Answers by
Jonathan
Top achievements
Rank 2
Share this question
or