How to open Upload Window client side?

2 posts, 0 answers
  1. Steve White
    Steve White avatar
    26 posts
    Member since:
    Sep 2009

    Posted 15 Jan 2010 Link to this post

    I have added a new Grid ContextMenuItem and added a handler for the click event. I want to open the Upload Window on this event but don't know how to do it. This functionality is to allow for document versioning and I'll do all of the checks for versioning serverside.

    Here's the handler:

        function OnClientContextMenuItemClicked(sender, args) { 
            var buttonValue = args.get_item().get_value(); 
            if (buttonValue == "Checkin") { 
                var oExplorer = $find("<%= DocumentExplorer.ClientID %>"); 
                var oAjax = $find("RadAjaxManager"); 
                // I want to open the upload window here 
            } 
        } 
     

    Thanks,
    Steve


  2. Steve White
    Steve White avatar
    26 posts
    Member since:
    Sep 2009

    Posted 15 Jan 2010 Link to this post

    I got it working by forcing the click event on the Upload toolbar button:

                var oExplorer = $find("<%= DocumentExplorer.ClientID %>"); 
                var toolbar = oExplorer.get_toolbar(); 
                var uploadButton = toolbar.findItemByValue("Upload"); 
                uploadButton.click(); 
     

Back to Top