I am using various Rad ajax controls on a photo theme page. I have 2 rotators in different tabs of a tabstrip each loading the same images from a DB but displaying them differently. Initially when the images are loaded, they are ok, but after selecting a different set of images using a RadListBox in the second tab, sometimes the images in the rotator in the first tab disappear even though they are showing in the html. I made sure the images in each of the rotators are the same size and the height and width attributes are set correctly. I am attaching some code snippets. I would appreciate any help you could give on this.
Thanks,
Rick Freiberg
Concinnity Marketing
Thanks,
Rick Freiberg
Concinnity Marketing
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
DefaultLoadingPanelID
=
"LoadingPanel1"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"thumbRotator"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"imagePreview"
LoadingPanelID
=
"LoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadListView1"
LoadingPanelID
=
"LoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"thumbRotator1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"imagePreview"
LoadingPanelID
=
"LoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadListView1"
LoadingPanelID
=
"LoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadListBox1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"thumbRotator"
LoadingPanelID
=
"LoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"SqlDataSource2"
LoadingPanelID
=
"LoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"thumbRotator1"
LoadingPanelID
=
"LoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"LoadingPanel1"
runat
=
"server"
Transparency
=
"30"
EnableSkinTransparency
=
"true"
BackColor
=
"#E0E0E0"
>
</
telerik:RadAjaxLoadingPanel
>
<
telerik:RadTabStrip
ID
=
"RadTabStrip1"
runat
=
"server"
SelectedIndex
=
"0"
MultiPageID
=
"RadMultiPage1"
CssClass
=
"tabstyle"
SelectedCssClass
=
"SelectedTab"
Align
=
"Right"
ForeColor
=
"White"
Skin
=
"Sitefinity"
>
<
Tabs
>
<
telerik:RadTab
Text
=
"CURRENT THEME"
>
</
telerik:RadTab
>
<
telerik:RadTab
Text
=
"GALLERY"
>
</
telerik:RadTab
>
<
telerik:RadTab
Text
=
"UPLOAD PHOTOS"
>
</
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
SelectedIndex
=
"0"
>
<
telerik:RadPageView
ID
=
"RadPageView1"
runat
=
"server"
CssClass
=
"photowrap_cm"
>
<
div
id
=
"picsarchivevertical_cm"
>
<
table
width
=
"88"
>
<
tr
>
<
td
>
<
img
src
=
"Images/arrow_up2.png"
id
=
"img_up"
height
=
"20"
width
=
"40"
alt
=
""
style
=
"cursor: pointer"
/>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
telerik:RadRotator
ID
=
"thumbRotator"
runat
=
"server"
RotatorType
=
"Buttons"
Width
=
"72px"
Height
=
"240px"
ItemHeight
=
"60px"
ItemWidth
=
"73px"
FrameDuration
=
"1"
ScrollDirection
=
"Up,Down"
OnItemClick
=
"ShowImage"
BorderStyle
=
"None"
>
<
ItemTemplate
>
<
div
>
<
img
src='<%# DataBinder.Eval(Container.DataItem, "Image") %>' alt='gallery image'
class="RotatorImage" /><
br
/>
</
div
>
</
ItemTemplate
>
<
ControlButtons
UpButtonID
=
"img_up"
DownButtonID
=
"img_down"
/>
</
telerik:RadRotator
>
<
asp:SqlDataSource
ID
=
"SqlDataSource2"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:CMCONSUMER_IMPERIAL_WEB_QAConnectionString2 %>"
SelectCommand="SELECT a.THUMBPATHFILENAME as [NAME] FROM ASSET a INNER JOIN PHOTO_OF_THE_DAY AS p ON p.ASSET_ID = a.ASSET_ID where Photo_Category = @ThemeID">
<
SelectParameters
>
<
asp:ControlParameter
ControlID
=
"RadListBox1"
DefaultValue
=
"2"
Name
=
"ThemeID"
PropertyName
=
"SelectedValue"
/>
</
SelectParameters
>
</
asp:SqlDataSource
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
img
src
=
"Images/arrow_down2.png"
id
=
"img_down"
height
=
"20"
width
=
"40"
alt
=
""
style
=
"cursor: pointer"
/>
</
td
>
</
tr
>
</
table
>
</
div
>
<
div
id
=
"picsinglephoto_cm"
>
<
asp:Image
ID
=
"imagePreview"
runat
=
"server"
ImageUrl
=
"Images/spacer.gif"
Height
=
"226px"
Width
=
"328px"
AlternateText
=
"preview"
BorderWidth
=
"0"
></
asp:Image
><
div
id
=
"picsauthor_cm"
>
<
asp:Label
ID
=
"lblUserName"
runat
=
"server"
Text
=
"Name"
></
asp:Label
>
<
br
/>
<
asp:Label
ID
=
"lblPhotoDate"
runat
=
"server"
Text
=
"Date"
></
asp:Label
></
div
>
<
div
id
=
"picslikeit_cm"
>
<
asp:Label
ID
=
"lblLikes"
runat
=
"server"
Text
=
"Likes"
></
asp:Label
> <
asp:LinkButton
ID
=
"ImagelikeButton"
runat
=
"server"
Text
=
"Like"
Style
=
"text-decoration: none"
/>
<
br
/>
</
div
>
</
div
>
<
div
id
=
"form_photoOfTheDayComment"
class
=
"tm10 clear"
>
</
div
>
<
div
id
=
"picscomments_cm"
>
<
asp:Image
ID
=
"comment_headshot"
runat
=
"server"
Height
=
"50"
Width
=
"50"
CssClass
=
"floatLeft rm10"
/>
<
asp:TextBox
ID
=
"txtComment"
runat
=
"server"
CssClass
=
"form_comments fnt11 italic white"
Text
=
"Leave a comment..."
TextMode
=
"MultiLine"
></
asp:TextBox
>
<
br
/><
p
class
=
"white fnt10 podCommentCopy"
>
By submitting this post, you grant USA Gold the permission to publish the comment
on joinusagold.com</
p
>
<
asp:LinkButton
ID
=
"lnkCommentSubmit"
runat
=
"server"
CssClass
=
"fnt10 white strong rightArrow podCommentSubmit"
CommandName
=
"ContentId"
OnCommand
=
"lnkCommentSubmit_OnCommand"
>SUBMIT</
asp:LinkButton
>
<
telerik:RadListView
ID
=
"RadListView1"
runat
=
"server"
DataSourceID
=
"SqlDataSource1"
AllowPaging
=
"True"
DataKeyNames
=
"COMMENT_ID"
ItemPlaceholderID
=
"CommentContainer"
Height
=
"170"
Skin
=
"Sunset"
onitemcommand
=
"RadListView1_ItemCommand"
>
<
ItemTemplate
>
<
fieldset
style
=
"float: left; width: 280px;"
>
<
legend
><%# Eval("NAME") %></
legend
>
<
div
>
<
div
style
=
"text-align: center; float: left"
>
<
telerik:RadBinaryImage
ID
=
"RadBinaryImage2"
runat
=
"server"
AlternateText
=
"Avatar"
ToolTip
=
"Avatar"
Width
=
"50px"
Height
=
"50px"
ResizeMode
=
"Fit"
ImageUrl='<%# Eval("AVATARPATH") %>' /></
div
>
<
div
>
<
div
>
<%# Eval("DATE") %>
</
div
>
<
div
>
<
div
>
<%# Eval("COMMENT") %>
</
div
>
<
div
>
<%# GetLikeText(Eval("LIKES").ToString()) %> it.
<
asp:LinkButton
ID
=
"likeButton"
runat
=
"server"
Text
=
"Like"
CommandName
=
"AddLike"
CommandArgument='<%# Eval("Comment_ID") %>' Style="text-decoration: none" /><
br
/>
</
div
>
</
div
>
</
div
>
</
div
>
</
fieldset
>
</
ItemTemplate
>
<
LayoutTemplate
>
<
fieldset
>
<
asp:PlaceHolder
ID
=
"CommentContainer"
runat
=
"server"
/>
<
telerik:RadDataPager
ID
=
"RadDataPager1"
runat
=
"server"
PageSize
=
"2"
Skin
=
"Black"
>
<
Fields
>
<
telerik:RadDataPagerButtonField
FieldType
=
"Numeric"
/>
</
Fields
>
</
telerik:RadDataPager
>
</
fieldset
>
</
LayoutTemplate
>
</
telerik:RadListView
>
</
div
>
</
telerik:RadPageView
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"RadPageView2"
>
<
div
style
=
"width: 700px"
>
<
div
style
=
"float: left"
class
=
"picsarchivevertical_cm"
>
<
table
width
=
"477"
>
<
tr
>
<
td
colspan
=
"3"
align
=
"center"
>
<
img
src
=
"Images/arrow_up2.png"
id
=
"img_up2"
height
=
"20"
width
=
"40"
alt
=
""
style
=
"cursor: pointer"
/>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
telerik:RadRotator
ID
=
"thumbRotator1"
runat
=
"server"
RotatorType
=
"Buttons"
Width
=
"480px"
Height
=
"214px"
ItemHeight
=
"107px"
ItemWidth
=
"160px"
FrameDuration
=
"1"
ScrollDirection
=
"Up,Down"
OnItemClick
=
"ShowImage"
BorderStyle
=
"None"
>
<
ItemTemplate
>
<
div
>
<
img
src='<%# DataBinder.Eval(Container.DataItem, "Image") %>' alt='gallery image'
class="BigRotatorImage" />
</
div
>
</
ItemTemplate
>
<
ControlButtons
UpButtonID
=
"img_up2"
DownButtonID
=
"img_down2"
/>
</
telerik:RadRotator
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"3"
align
=
"center"
>
<
img
src
=
"Images/arrow_down2.png"
id
=
"img_down2"
height
=
"20"
width
=
"40"
alt
=
""
style
=
"cursor: pointer"
/>
</
td
>
</
tr
>
</
table
>
</
div
>
<
div
style
=
"float: right"
>
<
telerik:RadListBox
ID
=
"RadListBox1"
runat
=
"server"
DataValueField
=
"ID"
DataTextField
=
"Theme"
AutoPostBack
=
"true"
Height
=
"233"
Skin
=
"Black"
Width
=
"210"
onselectedindexchanged
=
"RadListBox1_SelectedIndexChanged1"
>
</
telerik:RadListBox
>
</
div
>
</
div
>
</
telerik:RadPageView
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"RadPageView3"
>
<
div
id
=
"picsuploadphoto_cm"
>
<
p
>
<
input
type
=
"file"
class
=
"picsbrowseBtn"
name
=
"datafile"
size
=
"40"
/>
</
p
>
<
div
>
<
input
type
=
"button"
class
=
"picsbubmitBtn"
value
=
""
/>
</
div
>
</
div
>
</
telerik:RadPageView
>
</
telerik:RadMultiPage
>