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

telerik:RadImageGallery connect to datasource

1 Answer 147 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 05 Jan 2018, 05:39 PM

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

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jan 2018, 05:31 PM
Hi Kevin,

Right click over some of the not loaded images and choose Inspect to see whether the path is correct.
Also check in the network tab of the browser for error 404 paths and files.

Basically, you should provide, set and satisfy the data fields listed in this article https://docs.telerik.com/devtools/aspnet-ajax/controls/imagegallery/data-binding/server-side/advanced-via-needdatasource.

Regards,
Rumen
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
Kevin
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or