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

Hide RadProgressArea client side

1 Answer 135 Views
ProgressArea
This is a migrated thread and some comments may be shown as answers.
Meng
Top achievements
Rank 1
Meng asked on 07 Jul 2014, 03:42 PM
Hi there,

I have two RadAsyncUpload and a RadProgressArea on the same page, but I want the RadProgressArea to show only when the user uploading files using the first RadAsyncUpload, and hide the RadProgressArea when the user uploading through the second RadAsyncUpload. Currently, the RadProgressArea shows on both. Is there any way to hide the RadProgressArea using javascript? Any help is much appreciated.

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 08 Jul 2014, 03:34 AM
Hi Meng,

As a work around try to set the display property of RadProgressArea in OnClientFileUploading event of RadAsyncUpload.

ASPX:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" MultipleFileSelection="Automatic"
    EnableInlineProgress="false" OnClientFileUploading="showProgressArea" />
<br />
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload2" MultipleFileSelection="Automatic"
    OnClientFileUploading="hideProgressArea" />
<br />
<telerik:RadProgressArea runat="server" ID="RadProgressArea1" />

JavaScript:
function hideProgressArea(sender, args) {
    var area = $find('<%=RadProgressArea1.ClientID%>');
    area.get_element().style.display = "none";
}
function showProgressArea(sender, args) {
    var area = $find('<%=RadProgressArea1.ClientID%>');
    area.get_element().style.display = "block";
}

Thanks,
Shinu.
Tags
ProgressArea
Asked by
Meng
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or