This is a migrated thread and some comments may be shown as answers.
ClientScripts when Silverlight enabled.
1 Answer 21 Views
This is a migrated thread and some comments may be shown as answers.
Stein
Top achievements
Rank 1
Stein asked on 27 Feb 2011, 10:41 PM
<script type="text/javascript">
//<![CDATA[
  
        function mergeFileUploaded(sender, args) {
        <%= Page.GetPostBackEventReference(LB_doUploadData)%>;
    }
  
            function mergeUplOK(sender, eventArgs) {
                $telerik.$(".mergeuplErr")
                .html('');
            }
            function mergeValidationFailed(sender, eventArgs) {
                $telerik.$(".mergeuplErr")
                .html('<%= GetTranslation("invalidmergefile") %>');
                sender.deleteFileInputAt(0);
            }
     //]]> 
    </script>
  
                    <telerik:RadAsyncUpload ID="RadAsyncUpload_Data" HttpHandlerUrl="~/uploadHandler.ashx"
                        runat="server" MaxFileInputsCount="1" AllowedFileExtensions="csv,xls,xlsx,tsv"
                        OnClientFilesUploaded="mergeFileUploaded" OnClientFileUploading="mergeUplOK" OnClientValidationFailed="mergeValidationFailed" />
                    <div id="uplErr" class="mergeuplErr"></div>
When Silverlight is enabled and both OnClientValidationFailed and OnClientFilesUploaded are defined it seems that it fires the OnClientFilesUploaded even when the Validation failed. When Flash it works as expected. Have I missed anything?

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 07 Mar 2011, 11:04 AM
Hello Stein,

This is a bug in RadAsyncUpload which we are ought to fix for the upcoming Q1 release. The will apply the behavior present in the Silverlight module into all modules.

Kind regards,
Genady Sergeev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Asked by
Stein
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or