ClientScripts when Silverlight enabled.

2 posts, 0 answers
  1. Stein
    Stein avatar
    25 posts
    Member since:
    Apr 2008

    Posted 27 Feb 2011 Link to this post

    <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?
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 07 Mar 2011 Link to this post

    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!
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top