Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
219 views

I'm trying to connect my telerik:RadImageGallery to a sql server datasource via a web service.

When the page loads the RadImageGallery lists the number of images (eg. Item 1 of 4) but it doesn't display the images. 

My imgURL field returns a value with this full url path (eg. http://blue.kingcounty.com/Assessor/eRealProperty/MediaHandler.aspx?Media=631204 )

Any idea why the images won't display on the page?

Thanks in advance.

Kevin

 

 <telerik:RadImageGallery ID="RadImageGallery1"  runat="server" RenderMode="Lightweight" BackColor="White"  
 ImageUrl="imgURL"  DataDescriptionField="ImageDesc"  DataTitleField="TitleDesc"

OnNeedDataSource="RadImageGallery1_NeedDataSource">

 

    Protected Sub RadImageGallery1_NeedDataSource(ByVal sender As Object, ByVal e As ImageGalleryNeedDataSourceEventArgs)
        Dim dsParcelImageList As New DataSet
        Dim wsRealProp As New ws_AsRealProp
        dsParcelImageList = wsRealProp.ParcelImageList(hf_parcelNbr.Value)
        Try
            If Not dsParcelImageList Is Nothing Then
                RadImageGallery1.DataSource = dsParcelImageList
            End If
        Finally
        End Try
        dsParcelImageList = Nothing
    End Sub

Rumen
Telerik team
 answered on 08 Jan 2018
8 answers
172 views

Hello, I am using 2015.3.930.40.

I added two ImageGalleryTemplateItem and now the RadImageGallery posts back on each forward and back. Can I prevent postback? If I do need to postback, how can I keep the animation between items? Thank you.

Marin Bratanov
Telerik team
 answered on 07 Dec 2017
8 answers
266 views
I am having a strange issue where Image Gallery is squishing some images that are in portrait format severely affecting their aspect ratio. IMHO photos should never have their aspect ratio altered as the results are never pleasing.

How can I configure Image Gallery to leave the aspect ratio of images as is and not stretch or squish photos it displays?

Thanks so much!
Asfand
Top achievements
Rank 1
 answered on 16 Nov 2017
4 answers
480 views

Hi,

How can i add dynamic templated items to ImageGallery?

I define a template:

 

class ImageGalleryContentTemplate : ITemplate
{
    public String BackgroundImage { get; set; }
    public String HTMLTemplate { get; set; }
 
    public void InstantiateIn(Control container)
    {
        String strC = "";
        if (BackgroundImage != "")
            strC = String.Format("<div style=\"background-image: url({0})\">{1}</div>", BackgroundImage, HTMLTemplate);
        else
            strC = HTMLTemplate;
        container.Controls.Add(new LiteralControl(strC));
    }
}

I tried to use it following way:

ImageGalleryTemplateItem igti = new ImageGalleryTemplateItem();
ImageGalleryContentTemplate template = new ImageGalleryContentTemplate();
template.BackgroundImage = strBigImgUrl;
template.HTMLTemplate = strTemplate;
template.InstantiateIn(igti);

 

 

template.InstantiateIn doesn't accept ImageGalleryTemplateItem and if i use InstantiateIn(ImageGalleryTemplateItem container) instead of InstantiateIn(Control container), i don't use container.Controls.Add(...), because ImageGalleryTemplateItem hasn't .Controls() property.

if I use igti.ContentTemplate = template instead of template.InstantiateIn(igti) project running without errors, but other slides than first not showing.

Please look at this page: http://v2.gom.com.tr/anasayfa

Just below the menu;

- First slider done with RadRotator. Customer wants selector dots and seamless animation.

- Second slider with RadImageGallery, which has this problem (running with igti.ContentTemplate = template).

- Third slider with RadImageGallery, but has only images and working perfectly. But customer wants texts and link button.

How can i add dynamic templated items to ImageGallery OR how to handle it with RadRotator?

rama
Top achievements
Rank 1
 answered on 25 Oct 2017
4 answers
191 views
Hello everyone,
I used ImageGallery to show some collections of photographs. The problem is the slowness of the initial load.
Each gallery has 200/250 photos, each photo is 60/70kb ...
I think the slowness is due to loading all the thumbnails.
How can I fix?

Thank you

client side code:

<telerik:RadImageGallery ID="galRoom" runat="server" Width="100%" BackColor="#F4F4F4" Culture="it-IT" DisplayAreaMode="Thumbnails" >
    <ThumbnailsAreaSettings Height="608px" ThumbnailHeight="150" ThumbnailWidth="150" ThumbnailsSpacing="2" />
    <ImageAreaSettings ShowDescriptionBox="False" Height="730" />
    <ToolbarSettings ItemsCounterFormat="Fotografia {0} di {1}" />
    <ClientSettings>
        <AnimationSettings SlideshowSlideDuration="3000">
            <NextImagesAnimation Type="Random" />
            <PrevImagesAnimation Type="Random" />
        </AnimationSettings>
    </ClientSettings>
</telerik:RadImageGallery>


server side code:
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        galRoom.ImagesFolderPath = "events/ev1"
End Sub


Danilo
Top achievements
Rank 1
 answered on 03 Aug 2017
3 answers
220 views

I have a repeater to list all products which contains pictures for each product

if I click product A which has 3 pictures, clicked the last pic, it shows properly

then I click product B which has 1 pictures, the page throws out error: index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

I believe the issue is on Proudct B, RadImageGallery still tries to show the third pic, and couldn't find it.

Peter Milchev
Telerik team
 answered on 05 Jul 2017
1 answer
157 views
SVG

Hi,

 

In the ImageGallery the thumbnails for SVG files are shown OK.

When I use DisplayAreaMode="ToolTip" the SVG is not shown in the Tooltip.

Is this by design?

 

Marc

Rumen
Telerik team
 answered on 29 Jun 2017
1 answer
94 views

Hi,

How to i load all the jpg and png files from specific folder into RadImageGallery from server side?

 

 

Thank You

Venkata
Top achievements
Rank 1
 answered on 25 Apr 2017
0 answers
85 views

Hi

Is it possible to change the maxjsonlength used by the jsonserializer in radimagegallery?? 

I sometimes need to load images temporarily by passing base64 string instead of url, but I get maxjsonlength error. 

I have tried in web.config but that doesn't help. 

Thank you for your help 

Thami

Thami
Top achievements
Rank 1
 asked on 21 Apr 2017
1 answer
82 views

Is there a way to add a description when loading images via a folder?

Thanks

 

Konstantin Dikov
Telerik team
 answered on 30 Dec 2016
Narrow your results
Selected tags
Tags
+123 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?