Can alt tags / tooltip be added to the thumbnails.

1 Answer 54 Views
ImageGallery
Greg
Top achievements
Rank 1
Greg asked on 15 Feb 2022, 01:41 PM
I would like to show the alt tag / tooltip of the image title when the cursor is hovered over the thumbnail. Any way that can be done?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 Feb 2022, 09:13 AM

Hi Greg,

You can access the HTML elements of the Thumbnails on the client-side and set their title depending on your specific requirements:

 

function pageLoad(sender, args) {
    var items = $find('<%= RadImageGallery1.ClientID %>').get_items();
    var item = items.getItem(2);
    item.get_thumbnailElement().title = "My ToolTip";
}

 

Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ImageGallery
Asked by
Greg
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or