Setting the focus on button in RadUpload

Thread is closed for posting
4 posts, 1 answers
  1. Robert
    Robert avatar
    198 posts
    Member since:
    Aug 2009

    Posted 26 May 2011 Link to this post

    Can someone show me how to set focus on the "Select" button in the RadUpload object?


  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 May 2011 Link to this post

    Hello Robert,

    Try the client side code to achieve your scenario.
    ClientSide.
    <script type="text/javascript">
      $ = $telerik.$;
           function OnClientAdded(sender, args)
       {
                var $fileInput = $(args._fileInputField);
                var $selectButton = $fileInput.nextAll("input[class='ruButton ruBrowse']");
                    setTimeout(function()
                    {
                        $selectButton.focus();
                    }, 100);
       }    
    </script>

    aspx:
    <telerik:RadUpload ID="RadUpload1" runat="server" OnClientAdded="OnClientAdded">
    </telerik:RadUpload>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 27 May 2011 Link to this post

    Hi Robert,

    We recently add a new demo for keyboard navigation in RadUpload control. Please consult with it, for more details, how to focus the RadUpload control.

    Greetings,
    Peter Filipov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  5. Robert
    Robert avatar
    198 posts
    Member since:
    Aug 2009

    Posted 27 May 2011 Link to this post

    Thanks Guys...

Back to Top