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

Scroll panels automatically ?

1 Answer 72 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 11 Jun 2013, 01:37 PM
Hello,
Is it possible to scroll panels automatically ? I mean, for example, it changes panel every 10 seconds.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 14 Jun 2013, 07:36 AM
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.

Regards,
Pavel R. Pavlov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PanelBar
Asked by
Julien
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or