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

Open Radwindow from Menu Item

2 Answers 119 Views
Window
This is a migrated thread and some comments may be shown as answers.
John Davis
Top achievements
Rank 2
John Davis asked on 19 Nov 2010, 03:55 AM
Almost every web application has a help item on the menu.  When the user clicks the "Help" item on the menu, I want to open a window having the help inside.  I did not see an example of how to do it.  Can you give me one?

Or maybe there is some other way to accomplish the goal.
I do not have to have a radwindow but I need some way for a user to click "Help" on the menu and browse help and when done, easily return to the page where the user started.  If you simply set the url for the "Help" menu item to "index.html", the starting page for help, then the only way to return to the page you started on (after browsing through help pages) is to use the "back" button repeatedly.

If opening help in a window from a user click on a menu item is not possible, then how can I set up an html button on the master page that will open help in a window, such that this button will appear and work on every page?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Nov 2010, 06:53 AM
Hello,


Please go through the following link. Here you can find different method for opening window from client side.
Opening Windows

Call the method to open the window either from button click or menuitem click in (OnClientItemClick event of RadMenu). Hop this helps.


-Shinu.
0
John Davis
Top achievements
Rank 2
answered on 19 Nov 2010, 04:52 PM
Thank you.

It worked with the following javascript function and menu item and radwindow on the master page.

<script type="text/javascript">
function OnClientItemClickedHandler(sender, eventArgs)
{
    var mnuItm = eventArgs.get_item().get_text();
    if (mnuItm != null)
{
    if (mnuItm == "Help ")
{
    window.radopen("Help/index.html");
return false;
}
}
}
</script>

 <rad:RadMenuItem runat="server" Text="Help ">
 </rad:RadMenuItem>

<rad:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
<rad:RadWindow ID="RadWindowHelp" runat="server" NavigateUrl="~/Help/index.html" />
</Windows>
</rad:RadWindowManager>

Tags
Window
Asked by
John Davis
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
John Davis
Top achievements
Rank 2
Share this question
or