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

First image not showing

1 Answer 72 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 26 Jan 2015, 09:30 PM
Hello I have the below code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ImageSlider2.ascx.cs" Inherits="UserControls_ImageSlider2" %>

<asp:Panel id="ImageGalleryPnl" Visible="false" runat="server">
<telerik:RadImageGallery ID="RadImageGallery1" Width="350px" DisplayAreaMode="Image" LoopItems="true" runat="server" >
<ImageAreaSettings Height="250px" ShowDescriptionBox="false" />
<ThumbnailsAreaSettings Mode="ImageSlider" />
<ClientSettings AllowKeyboardNavigation="true">
</ClientSettings>
</telerik:RadImageGallery>

</asp:Panel>
<asp:Panel ID="MsgPnl" Visible="true" runat="server">
<asp:Label ID="lblMessage" Text="No images avaliable at this time" runat="server"></asp:Label>
</asp:Panel>

The imageGallery is in a ajax ModalPopupExtender. It is populated dynamically just before showing the popup as below:

Method: Grid_OnRowCommand:
rowIndex = Integer.Parse(e.CommandArgument) Mod grdLocations.PageSize
oRow = grdLocations.Rows(rowIndex)
grdLocations.SelectedIndex = rowIndex

Dim lblAddress As Label = oRow.FindControl("lblAddress1")
Dim lblCityState As Label = oRow.FindControl("lblCity")

Dim lblLocDescription As Label = oRow.FindControl("lblLocDescription")
lblModalInfo.Text = lblLocDescription.Text
sFullAddress = lblAddress.Text & " " & lblCityState.Text
lblModalFooter.Text = sFullAddress

ImageSlider1.showSlider(True)

ImgContent.Visible = False
Dim lblLocation As Label = oRow.FindControl("lblLocation")

ImageSlider1.sMSClient = _sMSClient
ImageSlider1.sLocation = lblLocation.Text
ImageSlider1.populateGallery()
ModalPopupExt1.Show()

The imageGallery works ok, I can navigate through all the images, but the first one is always showing in black after displaying the popup. If I move to next image and then back to the first I can see it. So it is loaded. It looks like it were inactivated or something.

Please advice.

Carlos

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 29 Jan 2015, 04:12 PM
Hi Carlos,

The behavior you describe seems rather strange. Would you try to upgrade the controls to the latest version and see how it works? The current release of the controls is 2014.3.1209.

Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ImageGallery
Asked by
Carlos
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or