I have a RadComboBox on my page which has an ItemTemplate defined containing a RadAsyncUpload control. When the file is uploaded I would like to populate the combobox with the name of the uploaded file. Please can anyone explain why this code doesn't work:
<
telerik:RadComboBox
ID
=
"RadComboBoxDocument"
runat
=
"server"
EmptyMessage
=
"Choose an existing SPA or upload a new one"
AppendDataBoundItems
=
"true"
Height
=
"200px"
Width
=
"300px"
>
<
ItemTemplate
>
<
div
>
<
telerik:RadAsyncUpload
ID
=
"RadAsyncUploadDocument"
runat
=
"server"
ControlObjectsVisibility
=
"None"
MultipleFileSelection
=
"Disabled"
MaxFileInputsCount
=
"1"
AllowedFileExtensions
=
"pdf"
Width
=
"300px"
OnClientFileUploaded
=
"fileUploaded"
>
</
telerik:RadAsyncUpload
>
</
div
>
</
ItemTemplate
>
<
Items
>
<
telerik:RadComboBoxItem
Text
=
" "
/>
</
Items
>
</
telerik:RadComboBox
>