telerik:RadImageGallery connect to datasource

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    5 posts
    Member since:
    Oct 2012

    Posted 05 Jan 2018 Link to this post

    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. )

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

    Thanks in advance.



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



        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)
                If Not dsParcelImageList Is Nothing Then
                    RadImageGallery1.DataSource = dsParcelImageList
                End If
            End Try
            dsParcelImageList = Nothing
        End Sub

  2. Rumen
    Rumen avatar
    14220 posts

    Posted 08 Jan 2018 Link to this post

    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

    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.
Back to Top