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

Async Upload popup - add scroll?

2 Answers 74 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Loy
Top achievements
Rank 1
Loy asked on 29 May 2014, 03:50 PM
I'm using the FileExplorer in a RadWindow popup and the issue I'm experiencing is that the async upload window resizes beyond the popup window area when many files are uploaded.

Is there a way the the upload popup can maintain it size and just use a scrollbar?

2 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 03 Jun 2014, 12:01 PM
Hi Loy,

You can achieve the desired behavior by configuring the FileExplorer's nested WindowManager's MaxHeight and AutoSize properties. For example, you can have a similar implementation:
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" EnableAsyncUpload="true" OnClientLoad="OnClientLoad">
    <Configuration ViewPaths="~/Images" DeletePaths="~/Images" UploadPaths="~/Images" />
</telerik:RadFileExplorer>
<script type="text/javascript">
    function OnClientLoad(explorer, args) {
        explorer.get_asyncUpload().add_added(filesAdding);
    }
 
    function filesAdding(asyncUpload, args) {
        $find("<%=RadFileExplorer1.ClientID%>").get_windowManager().getActiveWindow().autoSize(true);
    }
</script>
Code-behind:
protected
void Page_Load(object sender, EventArgs e)
{
    RadFileExplorer1.WindowManager.MaxHeight = Unit.Pixel(300);
}

I hope this helps.

Regards,
Vessy
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Loy
Top achievements
Rank 1
answered on 03 Jun 2014, 03:56 PM
Works great. Thanks for the great support.

Loy.
Tags
FileExplorer
Asked by
Loy
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Loy
Top achievements
Rank 1
Share this question
or