Scroll panels automatically ?

2 posts, 0 answers
  1. Julien
    Julien avatar
    2 posts
    Member since:
    Jun 2013

    Posted 11 Jun 2013 Link to this post

    Is it possible to scroll panels automatically ? I mean, for example, it changes panel every 10 seconds.

  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1237 posts

    Posted 14 Jun 2013 Link to this post

    Hello Julien,

    I am not sure what your scenario is, but I assume that you need to use data-binding scenario. In order to achieve your requirement you can use a DispatchedTimer with an interval of one second. Furthermore, you can update the currently selected item just by index using the Panelbar.Items collection. Please note that this collection holds your business items. This is why you can define an IsSelected property in your business object and bind it to the RadPanelBarItem.IsSelected property using a Style.

    For your convenience I implemented this approach in the attached project. Please take a look at it and let me know if it fits your needs. Please note that this is demonstration project and it has not been tested. If you want to use it in your application you might have to improve the code.

    Pavel R. Pavlov

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top