This is a migrated thread and some comments may be shown as answers.

Ticker Not Ticking On Postback

1 Answer 55 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 17 Jun 2009, 11:27 AM
I have a rotator with a ticker in the item template bound to an XLMDataSource on my page set up like:

                <telerik:RadRotator ID="RadRotator1" runat="server"  
                    DataSourceID="XmlDataSource1" Width="100%" FrameDuration="6000"  
                    ScrollDirection="Left" ScrollDuration="800" Height="250px"  
                    PauseOnMouseOver="False" ItemWidth="200px"
                    <ItemTemplate> 
                        <div class="tickdetail"
                            <div class="clogo"><img src="<%# XPath("LogoFile") %>" alt=""/></div> 
                            <div class="tickdesc" style="text-align:center"
                                <telerik:RadTicker ID="Ticker1" runat="server" TickSpeed="50"
                                    <Items> 
                                        <telerik:RadTickerItem Text='<%# XPath("Description") %>' /> 
                                    </Items> 
                                </telerik:RadTicker> 
                            </div> 
                        </div> 
                    </ItemTemplate> 
                    <SlideShowAnimation Duration="1000" Type="Fade" /> 
                </telerik:RadRotator> 

When I go to my page everything appears to work fine and I see the rotator doing its thing and the ticker is ticking.  But when I click an item on the page that causes a postback, the rotator shows the associated image but the ticker no noger runs.  Any ideas?


1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 18 Jun 2009, 10:26 AM
Hi Sam,

That behavior occurs and it is expected because the RadTicker needs to be rebound after post back. You can achieve this by calling the RadRotator1.DataBind() function in the PageLoad() event handler :

protected void Page_Load(object sender, EventArgs e) 
    RadRotator1.DataBind(); 


I hope this helps.

Kind regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Rotator
Asked by
Dave
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or