First image not showing

2 posts, 0 answers
  1. Carlos
    Carlos avatar
    1 posts
    Member since:
    Sep 2014

    Posted 26 Jan 2015 Link to this post

    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">

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

    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


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

    ImageSlider1.sMSClient = _sMSClient
    ImageSlider1.sLocation = lblLocation.Text

    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.


  2. Viktor Tachev
    Viktor Tachev avatar
    1438 posts

    Posted 29 Jan 2015 Link to this post

    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.

    Viktor Tachev

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top