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

Disable Flash-AsyncUpload

3 Answers 144 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Stein
Top achievements
Rank 1
Stein asked on 19 May 2011, 12:01 PM

Are using the

<script type='text/javascript'>
Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; }
</script>
, 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?

3 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 24 May 2011, 04:13 PM
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,
Helen
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.

0
Dhandapani
Top achievements
Rank 1
answered on 16 Nov 2011, 01:45 PM
I have used server side also get null reference error.

Regards
Dhandapani
0
Helen
Telerik team
answered on 18 Nov 2011, 12:10 PM
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,
Helen
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
Tags
AsyncUpload
Asked by
Stein
Top achievements
Rank 1
Answers by
Helen
Telerik team
Dhandapani
Top achievements
Rank 1
Share this question
or