Ajax - Rotator : Why display jpeg is not the first one?
I have 16 jpeg files for display
Each time show one jpeg only.
I use the sqldatasource to testing the result is correct .
Also I add the get item to display the counter of the item
The result
---------------------
The start screen
jpeg (this is the no.15 jpeg)
1/16
--------------------
press the forward button
jpeg (this is the no.16 jpeg)
16/16
-------------------
press the forward button
jpeg (this is the no.1 jpeg)
1/16
---------------------
Question:
1) Why the rotator first display is the no.15 jpeg not the first one jpeg.
2) When I try using WrapFrames="false" , the last jpeg is blank.
source:
-----------------------------
<span class="title"><telerik:RadRotator ID="RadRotatorHorizontal"
runat="server" DataSourceID="SqlDataSource1"
RotatorType="FromCode" Height="480px"
Width="1471px" ItemHeight="480px" ItemWidth="1200px" scrollduration="1" frameduration="2000"
ScrollDirection="Right"
CssClass="floatRotator" OnClientItemShown="OnClientItemShown" >
<ItemTemplate>
<div class="itemTemplate">
<asp:Image runat="server" ID="Image"
ImageUrl='<%# Eval("ImageURL_Full_FileName") %>'
CssClass="displayimage" AlternateText="Customer Image" Height="455px"
Width="1200px"/>
<br />
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$
ConnectionStrings:ConnectionString9 %>"
selectcommand="SELECT * FROM [Cam_Recording] ORDER BY [ImageURL_Full_FileName]"
ProviderName="<%$ ConnectionStrings:ConnectionString9.ProviderName %>">
</asp:sqldatasource>
function OnClientItemShown(sender, args) {
var textitem = (args.get_item().get_index() + 1) + "/" + (sender.get_items().length);
var Label5value = document.getElementById("Label5");
Label5value.innerHTML = textitem;
}
-----------------------------
Thanks!!!