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

[Solved] MultipleFileSelection manipulate client side.

1 Answer 109 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Sabby
Top achievements
Rank 1
Sabby asked on 15 Apr 2013, 11:52 PM
Is it possible to manipulate 'MultipleFileSelection' property of AsyncUpload control client side? I want to toggle the fileselection functionality of AyncUpload control client side from 'Automatic' to 'Disabled'

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Apr 2013, 08:07 AM
Hi Sabby,

It is possible to set the MultipleFileSelection mode using JavaScript. Please have a look into the following JavaScript code.

JavaScript:
<script type="text/javascript">
    function setSelectionMode() {
        var upload = $find("<%= RadAsyncUpload1.ClientID %>");
        upload._multipleFileSelection = 1;
    }
</script>

If the _multipleFileSelection property value is set to 1, then the selection mode is set to Automatic. If the same property value is 0, then the MultipleFileSelection mode is disabled.

Thanks,
Princy.
Tags
AsyncUpload
Asked by
Sabby
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or