Hi,
I have a situation where I need to move a RadAsyncUpload control in the DOM. After I move it the AllowedFileExtensions seems to be reset to allow all extensions. I have not been able to work out how to set the AllowedFileExtensions via javascript.
Here is the problem isolated in a simple example. Initially only jpg and wmv files can be selected. But once I click the bt_MoveDiv button and move the control in the DOM, all file types can be selected.
I had similar problems some time ago with RadEditor being moved in the DOM. This problem was fixed with the onParentNodeChanged() function. Is there something similar I can do for RadAsyncUpload?
Thanks
Andrew
I have a situation where I need to move a RadAsyncUpload control in the DOM. After I move it the AllowedFileExtensions seems to be reset to allow all extensions. I have not been able to work out how to set the AllowedFileExtensions via javascript.
Here is the problem isolated in a simple example. Initially only jpg and wmv files can be selected. But once I click the bt_MoveDiv button and move the control in the DOM, all file types can be selected.
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
script
language
=
"javascript"
type
=
"text/javascript"
>
function buttonClick() {
var container = document.getElementById('container');
var ph = document.getElementById('holder');
ph.appendChild(container);
}
</
script
>
<
div
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
div
id
=
"container"
>
<
telerik:RadAsyncUpload
ID
=
"RadAsyncUpload1"
runat
=
"server"
AllowedFileExtensions
=
"jpg,wmv"
>
</
telerik:RadAsyncUpload
>
<
telerik:RadProgressArea
ID
=
"RadProgressArea1"
runat
=
"server"
>
</
telerik:RadProgressArea
>
<
asp:Button
ID
=
"bt_Submit"
runat
=
"server"
Text
=
"Submit"
onclick
=
"bt_Submit_Click"
/>
</
div
>
<
div
id
=
"holder"
>
</
div
>
<
asp:Button
ID
=
"bt_MoveDiv"
runat
=
"server"
Text
=
"Move div"
OnClientClick
=
"buttonClick();return false;"
/>
</
div
>
</
form
>
</
body
>
I had similar problems some time ago with RadEditor being moved in the DOM. This problem was fixed with the onParentNodeChanged() function. Is there something similar I can do for RadAsyncUpload?
Thanks
Andrew