<
telerik:RadImageGallery
ID
=
"RadImageGallery1"
runat
=
"server"
>
<
ThumbnailsAreaSettings
ThumbnailWidth
=
"140px"
Width
=
"140px"
Position
=
"Left"
ScrollOrientation
=
"Vertical"
/>
<
Items
>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Yoga.jpg"
Title
=
"Title 1"
/>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Swimming.jpg"
Title
=
"Title 2"
/>
<%-- Title container disappears here and will not show up with the rest of the items --%>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Surfing.jpg"
/>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Snowboarding.jpg"
Title
=
"Title 4"
/>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Skiing.jpg"
Title
=
"Title 5"
/>
</
Items
>
</
telerik:RadImageGallery
>
<
telerik:RadImageGallery
ID
=
"RadImageGallery1"
runat
=
"server"
>
<
ThumbnailsAreaSettings
ThumbnailWidth
=
"140px"
Width
=
"140px"
Position
=
"Left"
ScrollOrientation
=
"Vertical"
/>
<
Items
>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Yoga.jpg"
Title
=
"Title 1"
/>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Swimming.jpg"
Title
=
"Title 2"
/>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Surfing.jpg"
Title
=
" "
/>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Snowboarding.jpg"
Title
=
"Title 4"
/>
<
telerik:ImageGalleryItem
ImageUrl
=
"Images/Skiing.jpg"
Title
=
"Title 5"
/>
</
Items
>
</
telerik:RadImageGallery
>
<
telerik:RadImageGallery
ID
=
"RadImageGallery1"
runat
=
"server"
>
<
ClientSettings
>
<
ClientEvents
OnImageLoading
=
"OnImageLoading"
/>
</
ClientSettings
>
<%-- Items --%>
</
telerik:RadImageGallery
>
function
OnImageLoading(sender, args) {
var
item = args.get_item();
if
((item.get_title() || item.get_description()) && sender.isPlaying()) {
var
rig = $(sender.get_element());
var
hiddenControl = rig.find(
".rigPrevButton:hidden, .rigNextButton:hidden, .rigDescriptionBox:hidden"
);
if
(hiddenControl.length) {
hiddenControl.show();
}
}
}