Hi. i like that AsyncUpload is able to automically create a new file upload control to allow multiple uploads. but i wants to know is it possible to add additional field to each row? i want to add a dropdown list for users to select the document type of the file he uploaded
My Code:
01.<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" OnClientFileUploaded="onClientFileUploaded" MultipleFileSelection="Automatic"></telerik:RadAsyncUpload>02.03.<script>04.05. (function () {06.07. window.onClientFileUploaded = function (radAsyncUpload, args) {08. var row = args.get_row(),09. inputName = radAsyncUpload.getAdditionalFieldID("documentType"),10. inputType = "text",11. inputID = inputName,12. input = createInput(),13. label = createLabel(inputID),14. br = document.createElement("br");15.16. row.appendChild(br);17. row.appendChild(label);18. row.appendChild(input);19. }20.21. function createInput() {22. var input = document.createElement("select");23. var option = new Option();24. option.value = "HR";25. option.text = "HR";26. input.options.add(option);27.28. var option1 = new Option();29. option1.value = "Finance";30. option1.text = "Finance";31. input.options.add(option1);32.33. var option2 = new Option();34. option2.value = "IT";35. option2.text = "IT";36. input.options.add(option2);37. return input;38. }39.40. function createLabel(forArrt) {41. var label = document.createElement("label");42.43. label.setAttribute("for", forArrt);44. label.innerHTML = "Document Type: ";45.46. return label;47. }48. })();49.</script>
i receive the error shown in attached image