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

Image Gallery is not displaying any Image,

2 Answers 30 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Atif
Top achievements
Rank 1
Atif asked on 02 Sep 2015, 08:57 AM

RadImageGallery is not  displaying any image. 

<telerik:RadImageGallery ID="rigRMA" runat="server" OnNeedDataSource="rigRMA_NeedDataSource" DataImageField="FILE_PATH" DataThumbnailField="FILE_PATH" DataKeyNames="FILE_PATH" Visible="false"
              DataTitleField="FILE_NAME" Width="647px" Height="480px" LoopItems="true">
              <ThumbnailsAreaSettings ThumbnailWidth="120px" ThumbnailHeight="80px" Height="80px" />
              <ImageAreaSettings Height="400px" />
              </telerik:RadI
protected void rigRMA_NeedDataSource(object sender, ImageGalleryNeedDataSourceEventArgs e)
    {
           rigRMA.DataImageField = "FILE_PATH";
            rigRMA.DataSource = GetView();
}
mageGallery
>

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Sep 2015, 01:44 PM
Hello Atif,

You can check the sample provided in the following article for an actual reference to a programmatically bound image gallery control:
http://www.telerik.com/support/code-library/access-unique-datakeyvalue-and-delete-images-from-radimagegallery-bound-to-a-data-source

Hope this helps.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Atif
Top achievements
Rank 1
answered on 05 Sep 2015, 07:47 AM
Thanks. I solved it by adding a Virtual Path for DataImageField.
Tags
ImageGallery
Asked by
Atif
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Atif
Top achievements
Rank 1
Share this question
or