FileExplorer and WindowManager with different skins

6 posts, 0 answers
  1. Peter
    Peter avatar
    71 posts
    Member since:
    Mar 2012

    Posted 17 Mar 2014 Link to this post

    Is it possible to have the WindowManager within the FileExplorer have a different skin?

    I am setting the following in code:

                rfeExplorer.Upload.Skin = "Default"
                rfeExplorer.WindowManager.Skin = "Default"

    The FileExplorer has a Web20 setting, but appears as though the WindowManager ignores it.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Mar 2014 in reply to Peter Link to this post

    Hi Peter,

    Please have a look into the sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server">
        <Configuration ViewPaths="~/RadAsyncUpload/Uploads/" UploadPaths="~/RadAsyncUpload/Uploads/"
            DeletePaths="~/RadAsyncUpload/Uploads/" />
    </telerik:RadFileExplorer>

    C#:
    protected void Page_Load(object sender, EventArgs e)
    {
        RadFileExplorer1.WindowManager.Skin = "Web20";
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter
    Peter avatar
    71 posts
    Member since:
    Mar 2012

    Posted 18 Mar 2014 in reply to Shinu Link to this post

    I have this...

                rfeExplorer.Skin = "Web20"
                rfeExplorer.Upload.Skin = "Default"
                rfeExplorer.WindowManager.Skin = "Default"

                   <telerik:RadFileExplorer runat="server" ID="rfeExplorer" Width="960px" Height="450px" EnableOpenFile="true"
                            DisplayUpFolderItem="false" EnableCreateNewFolder="false" TreePaneWidth="0" VisibleControls="ContextMenus,Grid,ListView,Toolbar"
                             OnClientMove="OnExplorerMoveHandler" AllowPaging="true" PageSize="200" OnClientFileOpen="OnExplorerFileOpen">
                            <Configuration ViewPaths="~/xxxx" UploadPaths="~/xxxx" MaxUploadFileSize="5500000"
                                DeletePaths="~/xxxx" EnableAsyncUpload="true"></Configuration>
                    </telerik:RadFileExplorer>

    (Ingore notepad)  Notice how the modal has the Web20 skin.
  5. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 18 Mar 2014 Link to this post

    Hi Peter,

    Setting different skin to the FileExplorer's nested controls can be done only in case FileExplorer has not got explicitly set skin (it is used with the Default one). When the control has a specified skin like Web20, the skins of its nested controls cannot be controlled anymore. The reason for that is the configured skin is applied to the control (and all its children) in its PreRender event and cannot be overwritten.

    I hope this information will be helpful for you.

    Kind regards,
    Vessy
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  6. Peter
    Peter avatar
    71 posts
    Member since:
    Mar 2012

    Posted 18 Mar 2014 in reply to Vessy Link to this post

    Ah well, that explains it, don't like it, but I can live with it...
  7. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 19 Mar 2014 Link to this post

    Hi Peter,

    Thank you for your understanding. Do not hesitate to contact us should any further questions occur.

    Kind regards,
    Vessy
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017