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
<%@ 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