Access RadTicker items

4 posts, 1 answers
  1. Mahmoud
    Mahmoud avatar
    25 posts
    Member since:
    Sep 2012

    Posted 13 May 2011 Link to this post

    Hi,

    in the demo of the RadRotator with Ticker ..
     
    the data source that I'm using is SqlDataSource .. and I can access the items in the Rotator ... but I have

    a problem access the RadTickerItem inside it which is inside the RadTicker .. 

    so .. any help I will be grateful.
  2. Niko
    Admin
    Niko avatar
    387 posts

    Posted 13 May 2011 Link to this post

    Hi Mahmoud,

    Do you need to access the RadTickerItem on the server-side (code-behind) or on the client-side? Could you, please, specify the scenario you wish to accomplish so that I can pinpoint you to the correct sources of information?


    All the best,
    Niko
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mahmoud
    Mahmoud avatar
    25 posts
    Member since:
    Sep 2012

    Posted 13 May 2011 Link to this post

     Hi Admin,

    I want to access the RadTickerItem in server side (Code-behind) in   C# .
  5. Answer
    Niko
    Admin
    Niko avatar
    387 posts

    Posted 17 May 2011 Link to this post

    Hi Mahmoud,

    Once getting a reference to the RadTicker control, you have access to its Items collection. If you need the first item you can simply ask for the first element of the collection:
    var firstItem = ticker.Items[0];
    However the RadTicker does not persist its state across postbacks, therefore you cannot find the currently shown Item among all the items on the server.

    Hope this helps.

    Greetings,
    Niko
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top