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

RadUpload controls not working properly with RegisterArrayDeclaration

2 Answers 60 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
sweta
Top achievements
Rank 1
sweta asked on 31 Aug 2010, 12:39 PM

Hello,

i'm using telerik radupload control along with radprogess manager.

i have added extra field to file upload control using onClientAdded="addTitle" method.

i have declared one dropdown box in addtitle method.

my dropdown box requires to fetch values from code - behind.

so i have written following method to get the array in client side.

Page.ClientScript.RegisterArrayDeclaration("Type", "'1','2','3'");

when i'm trying to access alert(Type.length); it generates javascript error.
my FileUpload page is derived from master page. my master page contains the script manager.
so i tried below

ScriptManager.RegisterArrayDeclaration(this,"Type", "'1','2','3'");

but this is also not working.
when i debugged the code i got error at folowing place
if (expectedType && !expectedType.isInstanceOfType(param))

where expectedType  is an array which we declared.
param is : Telerik.Web.UI.RadFormDecorator.
i have removed FormDecorator from Master page but it does not solved the issue. next time it gives error for radprogessbar.

Please suggest some solution.

thanks
Sweta

2 Answers, 1 is accepted

Sort by
0
sweta
Top achievements
Rank 1
answered on 31 Aug 2010, 01:45 PM

I solved the issue.

thanks
Sweta
0
h@r!
Top achievements
Rank 1
answered on 06 Sep 2010, 07:28 AM
Hi Sweta,

Can you please put the solution in the thread so that when ever some one encounters the same issue can solve it easily with out spending much time on that..

Thanks,
h@r!
Tags
AsyncUpload
Asked by
sweta
Top achievements
Rank 1
Answers by
sweta
Top achievements
Rank 1
h@r!
Top achievements
Rank 1
Share this question
or