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

Hiding thumbnails by default

6 Answers 320 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
arnaud
Top achievements
Rank 1
arnaud asked on 06 Mar 2014, 10:49 PM
Hi,

Thank you for this new control, very useful one.

1) I would like to have the possibility to hide the thumbnails area (Image display area mode) (I don't want the ImageSlider or ImageSliderPreview dots)
Is there a proper way to do it ?
Right now i'm doing :
 <ThumbnailsAreaSettings Height="0" Width="0" />
<ToolbarSettings ShowThumbnailsToggleButton="false" />

2) On your client side binding demo, why is there a kind of loading animation when you switch from one picture to another ? (Reproduce it here : http://demos.telerik.com/aspnet-ajax/image-gallery/examples/data-binding/client-side-binding/defaultcs.aspx)

3) Could you provide a exemple (if possible) of how you would use the control with web service binding using PageMethods.GetData ? (similar to this demo : http://demos.telerik.com/aspnet-ajax/listview/examples/client/programmaticdatabinding/defaultcs.aspx)

Thanks
Arnaud

6 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 11 Mar 2014, 12:47 PM
Hi Arnaud,

There is no property for hiding the RadImageGallery ThumbnailsArea so setting Height and Width to zero should be enough. Additionally, the loading animation represents a RadAjaxLoadingPanel which indicates the next image loading. You could optionally hide it by setting the RadImageGallery.LoadingPanel.Visible property to false.

In order to bind the RadImageGallery from a PageMethod you could retrieve the data loop through the returned items and manually create each of the RadImageGallery items as shown in the client-side binding demo.

Regards,
Antonio Stoilkov
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.

0
arnaud
Top achievements
Rank 1
answered on 24 Mar 2014, 04:40 PM
Thanks Antonio.

In next component version, could you replace the <h4> tag (<h4 class="rigTitle"></h4>) by another tag (not a hxx one) for seo purpose ?
0
Antonio Stoilkov
Telerik team
answered on 27 Mar 2014, 07:16 AM
Hi,

We have designed the RadImageGallery with SEO and fully descriptive HTML in mind. The image title is wrapped inside a <h4> because it presents a main information for the image. The other reason is that the HTML becomes more descriptive because a Heading tab is suitable for titles.

Additionally, you could go to our Feedback Portal and create a new feature request by clicking on the Suggest New button and let people vote for your suggestion.
Regards,
Antonio Stoilkov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Sam
Top achievements
Rank 1
answered on 25 Aug 2014, 03:11 PM
Just in case anyone else is looking to hide the thumbnails by default, here is what I ended up doing. Add the following event handler to the Image Gallery onImageGalleryCreated event. 

function OnImageGalleryCreated(sender, args) {
 var tnArea = sender.get_thumbnailsArea();
 tnarea.toggle();
}

Otherwise, the toggle button will be out of sync the first time. 
0
arnaud
Top achievements
Rank 1
answered on 11 Mar 2015, 01:57 PM
Hi Antonio,

One year later, I still think the <h4 class="rigTitle"></h4> should be removed for SEO purpose.
Your comment above was, a year ago, quite valid.

Today however we have the possiblity to add HTML template to the image Gallery so I can't see why you still 'force' us to have the <h4> tag.

In my case, I don't have any description for my images, juste a simple gallery defined like that :

<telerik:RadImageGallery ID="RadImageGallery1" runat="server" Height="100%" Skin="Bootstrap" ClientDataSourceID="RadClientDataSource1" RenderMode="Auto" DataImageField="url1" DisplayAreaMode="Image">
                            <ThumbnailsAreaSettings Mode="ImageSliderPreview" />
                            <ToolbarSettings Position="None" />
                            <ClientSettings>
                                <ClientEvents OnImageGalleryCreated="onImageGalleryCreated" />
                                <AnimationSettings>
                                    <PrevImagesAnimation Type="Fade" Speed="1500" />
                                    <NextImagesAnimation Type="Fade" Speed="1500" />
                                </AnimationSettings>
                            </ClientSettings>

                        </telerik:RadImageGallery>

In this case, you have empty h4 tags for all the images.

And by the way, why h4 and not h5 or h6, etc ..

Well, you got my point.

Thanks
Arnaud
0
Maria Ilieva
Telerik team
answered on 16 Mar 2015, 09:45 AM
Hi Arnaud,

I will forward your report to our development team, so that they could further research on this case and optimize the RadImageGallery rendered HTML is possible.

Thank you for your feedback.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ImageGallery
Asked by
arnaud
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
arnaud
Top achievements
Rank 1
Sam
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or