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

Validating radupload inside grid in client side

1 Answer 29 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Silvio Silva Junior
Top achievements
Rank 2
Silvio Silva Junior asked on 10 Jun 2010, 08:11 PM
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




1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Jun 2010, 09:52 AM
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.
Tags
Upload (Obsolete)
Asked by
Silvio Silva Junior
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or