Radwindow with silverlight upload

2 posts, 0 answers
  1. Nelson
    Nelson avatar
    15 posts
    Member since:
    Jan 2011

    Posted 30 May 2011 Link to this post

    Hi,

    I am using silverlight multiipload to allow user to upload file to my site. The silverlight control are embedded in the radwindow. Those javascript that are related to the silverlight control cannot be trigger as usual. ( It works fine when i move the silverlight control out of the radwindow. )
    Please advise.
    Thanks.


    Code (Partial only) - Javascript related to the silverlight 
        //DO NOT FORGET TO REGISTER THIS FUNCTION WITH THE SILVERIGHT CONTROL
        // OnPluginLoaded="pluginLoaded"
        function pluginLoaded(sender) {
            alert('testing loadign');
            slCtl = sender.get_element();

            //Register All Files Finished Uploading event
            slCtl.Content.Files.AllFilesFinished = AllFilesFinished;


            //Register single file finished event
            slCtl.Content.Files.SingleFileUploadFinished = SingleFileFinished;

            //Register Error occurred during uploading event
            slCtl.Content.Files.ErrorOccurred = ShowErrorDiv;
        }

    Code - Silverlight control
                <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/mpost.SilverlightMultiFileUpload.xap" 
                    MinimumVersion="4.0.50401.0" Width="100%" Height="270" OnPluginLoaded="pluginLoaded" InitParameters="HttpUploader=true,MaxFileSizeKB=,MaxUploads=1,CustomParam=yourparameters,DefaultColor=#DBD8C7" />




    Regards, 
    Nelson
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 02 Jun 2011 Link to this post

    Hi Nelson,

    From your code snippet it seems that you are using the Silverlight RadUpload control in an ASP.NET Ajax application. However, this approach doesn't work as expected in many scenarios and due to its many limitations the ASP.NET AJAX team developed the new RadAsyncUpload control which allows you to perform single and multi-file uploads through async requests instead of plain postback (the latter is supported by the RadUpload for ASP.NET AJAX control). It can be used in combination with RadProgressManager and RadProgressArea to monitor the progress while the upload process commences and permits automatic and custom validation. You can check its demo here. And you can also find more info here.

    Give the new control a try and let us know if it works for you.

    Best wishes,
    Tina Stancheva
    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
Back to Top