Open Radwindow from Menu Item

3 posts, 0 answers
  1. John Davis
    John Davis avatar
    119 posts
    Member since:
    Apr 2007

    Posted 18 Nov 2010 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Nov 2010 Link to this post

    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.
  3. John Davis
    John Davis avatar
    119 posts
    Member since:
    Apr 2007

    Posted 19 Nov 2010 Link to this post

    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>

Back to Top