Validating radupload inside grid in client side

Thread is closed for posting
2 posts, 0 answers
  1. Silvio Silva Junior
    Silvio Silva Junior avatar
    100 posts
    Member since:
    Mar 2010

    Posted 10 Jun 2010 Link to this post

    Hello guys.

    I saw some post about radupload validation in grid, but is server-side. I'm trying to use this tip:

    http://www.telerik.com/help/aspnet-ajax/upload_raduploadclientsidevalidation.html

    but, when I put in my code the javascript:

    <script type="text/javascript"
     function validateRadUpload1(source, arguments) 
     { 
      arguments.IsValid = $find("<%= MyUploadControl.ClientID %>").validateExtensions(); 
     } 
    </script > 

    I got an error:

    The name 'MyUploadControl' does not exist in the current context





    Note:
    The RadUpload is inside a grid;
    The page is inside a masterpage;

    I have tried with the complete name of control, like: ContentPlaceHolder1_RadGrid1_ctl00_ctl05_MyUploadControl

    but I got the same error.

    What's the best way to use this kind of validation?

    Best regards.

    [[|]]'s




  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Jun 2010 Link to this post

    Hi,

    Here I found a code library which describes how to access server controls in a grid from client side.

    Accessing server controls in a grid template on the client



    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top