RadUpload controls not working properly with RegisterArrayDeclaration

3 posts, 0 answers
  1. sweta
    sweta avatar
    21 posts
    Member since:
    Jun 2010

    Posted 31 Aug 2010 Link to this post


    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. sweta
    sweta avatar
    21 posts
    Member since:
    Jun 2010

    Posted 31 Aug 2010 Link to this post


    I solved the issue.

    thanks
    Sweta
  3. h@r!
    h@r! avatar
    20 posts
    Member since:
    Aug 2010

    Posted 06 Sep 2010 Link to this post

    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!
Back to Top