Click here to Skip to main content
15,742,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi guys,

This is my right context menu click event. I want to set a target in it. This context menu only for a image. it works proper on image. that have a option open window at new tab. i want from click event i want to do this option work.

when i click on this option the clicked image open at new window. it is done when i am do it from javascript code in aspx page. but know i want to that from click event in cs page. please help me.

protected void RadContextMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)

       if (e.Item.Text == "OpenInNewWindow")


this is my javascript code in aspx page:
function showingSetAsDesktop(sender, args)

                if (args.get_targetElement().id == "qsfexDesktop")


               function setAsDesktopItemClicked(sender, args)

              var menuItemValue = args.get_item().get_value();

                if (menuItemValue == "OpenInNewWindow")
                window.radopen(args.get_targetElement().src.replace("Thumb.gif", ".jpg"));

please help me in this..
Updated 30-Aug-11 0:08am
Sergey Alexandrovich Kryukov 30-Aug-11 11:14am    
What is "Right context menu"? As if there is left and right context menu? Top? Bottom? :-)

1 solution

Please don't re-post. I already suggested to read[^]. This is all you need.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900