telerik:RadImageGallery connect to datasource

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

    Posted 05 Jan 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. 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

  2. Rumen
    Admin
    Rumen avatar
    13547 posts

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