Launch Select Window on page load

2 posts, 0 answers
  1. David
    David avatar
    1 posts
    Member since:
    Feb 2016

    Posted 03 Feb 2016 Link to this post

    Hi guys,

    I've been attempting to create and aspx page that will automatically launch the select window, as if the user had clicked the "Browse" button, as soon as the page loads.  I was able to launch the window successfully using a new button I created myself (ID "RunMe"), and as you can see I've tried a couple different methods in the code below to try and launch the window on page load (document.ready and an onload function call in the body tag).  I added in the timeouts in case the call was happening before the control finished loading.  I'm testing in Chrome Version 48.0.2564.97 m.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewFileUpload.aspx.cs" Inherits="CYBERWebPortal.NewFileUpload" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html>
    <script src=""></script>
    <script type="text/javascript">
            function OnClientFileUploaded(sender, args) {
                //var contentType = args.get_fileInfo().contentType;
                __doPostBack('RadAsyncUpload1', '');
            function OnClientClicking(sender) {
                setTimeout(function () {
                }, 100);
            function FinishedLoading(sender) {
                setTimeout(function () {
                }, 900);

            $(document).ready(function () {
                setTimeout(function () {
                }, 900);


    <html xmlns="">
    <head runat="server">
    <body onload="FinishedLoading()">
            <button type="button" id="RunMe" onclick="OnClientClicking()">Test</button>
            <p><strong> Your test was successful. You have reached doc upload!</strong></p>
                <div style="display:inline-block;" > 
                    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" >
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            <telerik:RadAsyncUpload ID="RadAsyncUpload1" 
                    Localization-Select="Upload"  InputSize="25" 
                    EnableInlineProgress="false" > 


  2. Ivan Danchev
    Ivan Danchev avatar
    1778 posts

    Posted 08 Feb 2016 Link to this post

    Hello David,

    Opening the Select dialog window when the page loads without any user interaction, clicking a button for example, would not work in all browsers due to security reasons. We have a forum thread, in which you can find more information about this behavior.

    Ivan Danchev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top