Disable Flash-AsyncUpload

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

    Posted 19 May 2011 Link to this post

    Are using the

    <script type='text/javascript'>
    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; }
    , but since our AsyncUpload is dynamically made visible or not we get an errormessage when its not visible:

    Error: Unable to get value of the property 'Modules': object is null or undefined

    Isn't there a global setting we can use that disables it without getting the js-error. That would save us from dynamically adding this script depending on whether the asyncupload is visible or not on a lot of pages?
  2. Helen
    Helen avatar
    1052 posts

    Posted 24 May 2011 Link to this post

    Hello Stein,

    You may execute the javascript form the code-behind:

    string script1 = "Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; };";
    string flashScript = String.Concat("<script type='text/javascript'> ", script1, " </script>");
    this.Page.ClientScript.RegisterStartupScript(this.GetType(), "test", flashScript);

    Kind regards,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. DevCraft R3 2016 release webinar banner
  4. Dhandapani
    Dhandapani avatar
    4 posts
    Member since:
    Nov 2011

    Posted 16 Nov 2011 Link to this post

    I have used server side also get null reference error.

  5. Helen
    Helen avatar
    1052 posts

    Posted 18 Nov 2011 Link to this post

    Hi Dhandapani,

    What is the exact version of the Telerik.Web.UI.dll that you use?
    Could you please open a support ticket and send us a sample project which demonstrates the issue to examine it locally?

    Best wishes,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top