This is a migrated thread and some comments may be shown as answers.

Radwindow with silverlight upload

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nelson
Top achievements
Rank 1
Nelson asked on 31 May 2011, 03:20 AM
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

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 02 Jun 2011, 07:44 PM
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
Tags
General Discussions
Asked by
Nelson
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or