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

thumbnails

7 Answers 165 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Iron
Kjell asked on 05 Sep 2012, 12:30 PM
I have ExplorerMode="Thumbnails" on my RadFileExplorer.How to set the Thumbnails bigger?

7 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Sep 2012, 01:05 PM
Hi Kjell,

Try setting the CssClass property of RadFileExplorer to rfeLargeThumbnails to Increase the Dimensions of Thumbnails.

ASPX:
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" ExplorerMode="Thumbnails" CssClass="rfeLargeThumbnails">
   <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" />
</telerik:RadFileExplorer>

Please take a look into this documentation for more information.

Hope this helps.

Regards,
Princy.
0
Kjell
Top achievements
Rank 1
Iron
answered on 05 Sep 2012, 04:11 PM
Yes, that works for, bigger thumbnails.
But i tray to define custom size for Thumbnail items by overwriting the .rfeLargeThumbnails but dont have that to work.
I set in the head tag:
<style type="text/css">
    .rfeLargeThumbnails .rfeThumbList .rfeFile
    {
        width: 64px;
        height: 44px;
        padding-top: 20px;
    }
</style>

And in RadFileExplorer CssClass="rfeLargeThumbnails"

same
size, no change.
0
Princy
Top achievements
Rank 2
answered on 06 Sep 2012, 04:41 AM
Hi Kjell,

Try overriding the default CSS using !important as follows to achieve your scenario.

CSS:
<style type="text/css">
    .rfeLargeThumbnails .rfeThumbList .rfeFile
        {
            width: 64px !important;
            height: 44px !important;
            padding-top: 20px !important;
        }
</style>

Hope this helps.

Regards,
Princy.
0
Kjell
Top achievements
Rank 1
Iron
answered on 06 Sep 2012, 07:39 AM
Thumbnails does not change size with:

<style type="text/css">
     .rfeLargeThumbnails .rfeThumbList .rfeFile
         {
             width: 44px !important;
             height: 64px !important;
             padding-top: 20px !important;
         }
 </style>

Only background color when MouseOver, see picture
I'm trying to change so the Thumbnails appear portrait mode.....
0
Vessy
Telerik team
answered on 07 Sep 2012, 04:48 PM
Hi Kjell,

Would you, please, try to apply the following CSS styles:
<style type="text/css">
    /* Large thumbnails */
    .rfeLargeThumbnails .rfeThumbList
    {
            width: 136px !important; /*defines thumbnail wrapper dimension*/
    }
    .rfeLargeThumbnails .rfeThumbList .rfeFile
    {
            /*the sum of the height and padding-top values should be equal to the height property defined in the rfeLargeThumbnails class*/
            width: 100px !important;
            height: 80px !important;
            padding-top: 20px;
    }
    .rfeLargeThumbnails .rfeThumbList .rfeImageFile.rfeFile
    {
            height: 100px !important;
            padding-top: 0;
    }
    .rfeLargeThumbnails .rfeThumbList .rfeFile img
    {
            /*defines Image Preview Thumbnail dimension*/
            width: 100px !important;
            height: 100px !important;
    }
</style>

Please, note that this CSS will enlarge only the images' thumbnails. If you want to have bigger thumbnails for all file types (e.g mp3, doc, etc. ) you will need to link your own icon images. This is done because RadFileExplorer uses sprites to display its icons so they cannot be enlarged.

All the best,
Veselina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Miguel
Top achievements
Rank 1
answered on 05 Jun 2018, 09:31 PM

Hi Vessy!

Can you help me with an example of how to change the icon of the thumbnails, for example for pdf files?

using individual  icons, not with sprites.

 

Thanks so much!!!

 

0
Vessy
Telerik team
answered on 06 Jun 2018, 03:49 PM
Hi Miguel,

Depending on the Render mode you are using, you will need to use different selectors in order to overwrite the default image/icon used by RadFileExplorer.

For example, you can use a similar styling in order to modify the PDF thumbnail:
/*Lightweight rendering*/
div.RadFileExplorer .rfeFileIcon.pdf:before,
div.RadFileExplorer .rfeFileExtension.pdf:before {
    content: none;
}
 
div.RadFileExplorer .rfeFileIcon.pdf,
div.RadFileExplorer .rfeFileExtension.pdf {
}
/*Classic rendering*/
div.RadFileExplorer .rfeThumbnailView .rfeFile .rfeFileIcon.pdf {
    background-position:0 0 !important;
}


I hope this helps.

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
FileExplorer
Asked by
Kjell
Top achievements
Rank 1
Iron
Answers by
Princy
Top achievements
Rank 2
Kjell
Top achievements
Rank 1
Iron
Vessy
Telerik team
Miguel
Top achievements
Rank 1
Share this question
or