ClientScripts when Silverlight enabled.

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

    Posted 27 Feb 2011 Link to this post

    <script type="text/javascript">
            function mergeFileUploaded(sender, args) {
            <%= Page.GetPostBackEventReference(LB_doUploadData)%>;
                function mergeUplOK(sender, eventArgs) {
                function mergeValidationFailed(sender, eventArgs) {
                    .html('<%= GetTranslation("invalidmergefile") %>');
                        <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
    Genady Sergeev avatar
    1600 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!
Back to Top