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

asyncupload args.get_row is not a function

3 Answers 130 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Mirco
Top achievements
Rank 1
Mirco asked on 03 Oct 2012, 09:52 AM
I've try to replicate the following example:
http://demos.telerik.com/aspnet-ajax/upload/examples/async/additionalfields/defaultvb.aspx?product=asyncupload
but when I click on the select button and after choose a file I've a javascript error.
I have the same identical page. Only difference is the name of the file and I remove the "qsf" tag
"args.get_row is not a function"

The problem seems to be in the following
<script type="text/javascript">
         var $ = $telerik.$;
  
         function onClientFileUploaded(radAsyncUpload, args) {
             var $row = $(args.get_row());
             var inputName = radAsyncUpload.getAdditionalFieldID("TextBox");
             var inputType = "text";
             var inputID = inputName;
             var input = createInput(inputType, inputID, inputName);
             var label = createLabel(inputID);
             $row.append("<br/>")
             $row.append(label);
             $row.append(input);
         }
  
         function createInput(inputType, inputID, inputName) {
             var input = '<input type="' + inputType + '" id="' + inputID + '" name="' + inputName + '" />';
             return input;
         }
  
         function createLabel(forArrt) {
             var label = '<label for=' + forArrt + '>File info: </label>';
             return label;
         }
    </script>
in particular, it seems that the objects radAsyncUpload, args have no function inside

How to solve this problem?

Thanks

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 08 Oct 2012, 08:06 AM
Hello Mirco,

 
I have inspected the Demo you linked but could not observe the same behavior locally. I am attaching its isolated web page. Please review it and if you still observe the unusual behavior elaborate a little bit what should we change in it so we can reproduce the error described.

hope this will be helpful.

Greetings,
Plamen
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.
0
wja
Top achievements
Rank 2
answered on 21 Jun 2013, 01:30 PM
I am having the same problem described by the original poster.  Is  the get_row function available in all versions in the AsyncUpload control, or was it added at some point (we are not using the most current version of the controls).
0
Shinu
Top achievements
Rank 2
answered on 24 Jun 2013, 01:41 PM
Hi wja,

I checked with the Telerik RadControls version 2012.1.215.35 as well as with the latest version and the get_row() method is available in all those versions of RadControls.

Thanks,
Shinu.
Tags
AsyncUpload
Asked by
Mirco
Top achievements
Rank 1
Answers by
Plamen
Telerik team
wja
Top achievements
Rank 2
Shinu
Top achievements
Rank 2
Share this question
or