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

Thumbnail style

3 Answers 156 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 26 Feb 2018, 01:01 PM

Hi,

I want to apply some additional styling on the thumbnails: 1px border and some margin.
Now the thumbnails presentation is starting to act a bit weird, I guess something to do with hover etc.

Do you think a styling like this is possible:

https://www.coolblue.nl/product/783943/samsung-ue43mu6100.html

Marc

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 26 Feb 2018, 03:28 PM
Hi Marc,

You can achieve such layout by configuring RadImageGallery's DisplayArea="Image" and ThumbnailsArea="Thumbnails". When using the controls in thsi mode each thumbnail will be placen inside a <li> element that can be accessed with a similar CSS cascade:
.RadImageGallery ul.rigThumbnailsList li{
    padding: 5px;  
}
.RadImageGallery ul.rigThumbnailsList li img:hover{
    border: 1px solid blue;
}
<telerik:RadImageGallery RenderMode="Lightweight" runat="server" ID="RadImageGallery1" DisplayAreaMode="Image"
    Width="600px" Visible="true" ImagesFolderPath="~/Image-Gallery/Examples/Functionality/Modes/images">
    <ImageAreaSettings Height="500px" />
    <ThumbnailsAreaSettings Height="110px" />
</telerik:RadImageGallery>


Detailed information degarding the HTML output of the control can be found here:
https://docs.telerik.com/devtools/aspnet-ajax/controls/imagegallery/appearance-and-styling/html-output

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.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 27 Feb 2018, 08:22 AM

Hi Vessy,

 

When I apply such code the thumbnails are going over two lines, that is my problem.
Please refer to attached screenshot.

Marc

0
Vessy
Telerik team
answered on 27 Feb 2018, 01:04 PM
Hi Marc,

I am afiraid that the provided screenshot is not enough for me to reproduce the problem. Can you share the exact configuration leading to this behavior so I can replicate it and advice you furter?

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
ImageGallery
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vessy
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or