Ticker Not Ticking On Postback

2 posts, 0 answers
  1. Dave
    Dave avatar
    40 posts
    Member since:
    Jun 2007

    Posted 17 Jun 2009 Link to this post

    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?


  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 18 Jun 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top