How to find Rad upload instance at client side from RadFileExplorer

2 posts, 0 answers
  1. Tarun Juneja
    Tarun Juneja avatar
    3 posts
    Member since:
    Sep 2009

    Posted 21 Jul 2010 Link to this post

    Hi Guys,

    I want to find the Upload instance from the RadFileExplorer instance at client side using java script.

    Can someone help me out finding this?

    I know how to do this at server side but not at client side.

    Please let me know if something is not clear.

    Thank you

  2. Petio Petkov
    Petio Petkov avatar
    825 posts

    Posted 22 Jul 2010 Link to this post

    Hello Tarun,

    The code below illustrates how to get RadUpload's client object (RadUpload is in RadFileExplorer).
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> 
    <head id="Head1" runat="server"
        <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server"
        <script type="text/javascript">
            function FileInit(fileExplorer, args)
                var upload = $find('<%=RadFileExplorer1.Upload.ClientID %>');
                alert("upload id is:" + upload.get_id());
                alert("upload has " + upload.getFileInputs().length + " file inputs");
            <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" OnClientInit="FileInit"
                <Configuration ViewPaths="~/Files" DeletePaths="~/Files" UploadPaths="~/Files"/> 
    Hope this helps.
    Best wishes,
    Petio Petkov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top