Hi,
I'm having a problem with the RadRotator when using the .repaint method. I'm rotating though 5 items, using AutomaticAdvance, but the second item in the list is skipped, i.e. it goes straight from item 1 to item 3 and then through items 4 and 5. Item 2 is not shown.
However, on subsequent loops, item 2 is shown.
If I remove the .repaint method there is no problem (item 2 is shown the first time around), but I need to use this as the rotator is not displaying on older browsers without it.
I've added a stripped down example of my code below (I'm actually binding to a LinqDataSource in my code, but the behaviour is the same). I'm using version 2011.1.519.40 of Telerik.Web.UI.dll
Any ideas how to fix this?
Thanks,
Alan
I'm having a problem with the RadRotator when using the .repaint method. I'm rotating though 5 items, using AutomaticAdvance, but the second item in the list is skipped, i.e. it goes straight from item 1 to item 3 and then through items 4 and 5. Item 2 is not shown.
However, on subsequent loops, item 2 is shown.
If I remove the .repaint method there is no problem (item 2 is shown the first time around), but I need to use this as the rotator is not displaying on older browsers without it.
I've added a stripped down example of my code below (I'm actually binding to a LinqDataSource in my code, but the behaviour is the same). I'm using version 2011.1.519.40 of Telerik.Web.UI.dll
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
script
runat
=
"server"
>
</
script
>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function pageLoad() {
var oRotator = $find("<%= rotLatestNews.ClientID %>");
oRotator.repaint();
}
</
script
>
</
telerik:RadCodeBlock
>
<
div
>
<
telerik:RadRotator
runat
=
"server"
ID
=
"rotLatestNews"
ScrollDirection
=
"Left"
RotatorType
=
"AutomaticAdvance"
EnableRandomOrder
=
"false"
FrameDuration
=
"6000"
Width
=
"300px"
ItemWidth
=
"300px"
Height
=
"450px"
ItemHeight
=
"450px"
InitialItemIndex
=
"0"
WrapFrames
=
"true"
>
<
Items
>
<
telerik:RadRotatorItem
>
<
ItemTemplate
>1</
ItemTemplate
>
</
telerik:RadRotatorItem
>
<
telerik:RadRotatorItem
>
<
ItemTemplate
>2</
ItemTemplate
>
</
telerik:RadRotatorItem
>
<
telerik:RadRotatorItem
>
<
ItemTemplate
>3</
ItemTemplate
>
</
telerik:RadRotatorItem
>
<
telerik:RadRotatorItem
>
<
ItemTemplate
>4</
ItemTemplate
>
</
telerik:RadRotatorItem
>
<
telerik:RadRotatorItem
>
<
ItemTemplate
>5</
ItemTemplate
>
</
telerik:RadRotatorItem
>
</
Items
>
</
telerik:RadRotator
>
</
div
>
</
form
>
</
body
>
</
html
>
Any ideas how to fix this?
Thanks,
Alan