Hey everyone,
I was trying to use the RadRotator as a slideshow device. It was going good, but I have a lot of trouble making the images line up 1 per "screen" if you will. If I let it run as a "slideshow" without any buttons showing from the control for awhile, the images gradually get offset by 1-2 px which slowly builds up until 20-30px offset is appearing in each picture. That is, i see 80% of 1 pic, 20 % of the next (or previous). It appears as if there is a slight offset, maybe a double-> int loss of precision that is affecting layout.... has anyone encountered this before? I find if I have the tool buttons visible, this error does not occur, but then the user has to click to move the images, which seems counter-productive to a "slide-show". My sample is below... note that I have tweaked the width/height of my Rotator, the Item width/height and the actual width/height of the table that the rotator template uses and the offset issue always seems to occurr.
Any input is appreciated.
Thx,
Rob
Sample of my rotator:
<telerik:RadRotator ID="SlideshowRotator" runat="server"
FrameDuration="3000" Skin="Web20" RotatorType="SlideShowButtons"
Width="520" Height="358" ItemWidth="480" ItemHeight="358"
ScrollDirection="Left,Right">
<ItemTemplate>
<table style="width:480px; height:356px; margin-bottom:2px;">
<tr><td valign="middle" align="center"><img src='<%# DataBinder.Eval(Container.DataItem, "ImageUrl") %>' alt='<%# DataBinder.Eval(Container.DataItem, "Title")%>'
style='width:<%# DataBinder.Eval(Container.DataItem, "SlideshowWidth") %>px; height:<%# DataBinder.Eval(Container.DataItem, "SlideshowHeight") %>px;' /></td></tr>
</table>
</ItemTemplate>
</telerik:RadRotator>
I was trying to use the RadRotator as a slideshow device. It was going good, but I have a lot of trouble making the images line up 1 per "screen" if you will. If I let it run as a "slideshow" without any buttons showing from the control for awhile, the images gradually get offset by 1-2 px which slowly builds up until 20-30px offset is appearing in each picture. That is, i see 80% of 1 pic, 20 % of the next (or previous). It appears as if there is a slight offset, maybe a double-> int loss of precision that is affecting layout.... has anyone encountered this before? I find if I have the tool buttons visible, this error does not occur, but then the user has to click to move the images, which seems counter-productive to a "slide-show". My sample is below... note that I have tweaked the width/height of my Rotator, the Item width/height and the actual width/height of the table that the rotator template uses and the offset issue always seems to occurr.
Any input is appreciated.
Thx,
Rob
Sample of my rotator:
<telerik:RadRotator ID="SlideshowRotator" runat="server"
FrameDuration="3000" Skin="Web20" RotatorType="SlideShowButtons"
Width="520" Height="358" ItemWidth="480" ItemHeight="358"
ScrollDirection="Left,Right">
<ItemTemplate>
<table style="width:480px; height:356px; margin-bottom:2px;">
<tr><td valign="middle" align="center"><img src='<%# DataBinder.Eval(Container.DataItem, "ImageUrl") %>' alt='<%# DataBinder.Eval(Container.DataItem, "Title")%>'
style='width:<%# DataBinder.Eval(Container.DataItem, "SlideshowWidth") %>px; height:<%# DataBinder.Eval(Container.DataItem, "SlideshowHeight") %>px;' /></td></tr>
</table>
</ItemTemplate>
</telerik:RadRotator>