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

can we change the size for fileupload window of radfile explorer

3 Answers 109 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
pavan
Top achievements
Rank 1
pavan asked on 17 Nov 2015, 05:09 PM

can we change the size of the fileupload window, without affecting the changes on other rad windows.

I tried to apply the changes using windowmanger but those get applied to all the rad windows like file open window.

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 18 Nov 2015, 12:53 PM
Hello Pavan,

RadFileExplorer uses RadWindowManager for its dialogs and it is not possible to set explicitly the size only of the Upload window. The only possible approach I can suggest you is to hadle the WindowManager's ClientShown event and configure the size of the current window depending on its title.

For example, you can have a similar implementation:
ASPX:
<
telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" ExplorerMode="Thumbnails">
    <Configuration ViewPaths="~/Images" DeletePaths="~/Images" UploadPaths="~/Images" />
</telerik:RadFileExplorer>
<script>
    function onWindowShown(oWindow, args) {
        if (oWindow.get_title() == "Upload") {
            oWindow.setSize(900, 200)
        }
        else {
            oWindow.setSize(450, 340)
        }
    }
CS:
protected
void Page_Load(object sender, EventArgs e)
{
    RadFileExplorer1.WindowManager.OnClientShow = "onWindowShown";
}

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Francisco
Top achievements
Rank 1
answered on 09 Mar 2020, 04:49 PM
Wow! ... Tks, lo estuve buscando .... la soluciĆ³n sirve de maravilla.
0
Vessy
Telerik team
answered on 10 Mar 2020, 07:29 AM

Hello,

You are welcome, Francisco :) I am glad the provided solution is what you were searching for.

Regards,
Vessy
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Tags
FileExplorer
Asked by
pavan
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Francisco
Top achievements
Rank 1
Share this question
or