can we change the size for fileupload window of radfile explorer

2 posts, 0 answers
  1. pavan
    pavan avatar
    11 posts
    Member since:
    Nov 2015

    Posted 17 Nov 2015 Link to this post

    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.

  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 18 Nov 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top