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

Which event is fired when the carousel item is changed or moved?

4 Answers 79 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 25 Dec 2008, 03:35 PM
Hi..
What event is fired when the carousel is 'moved' either by MoveBy or using the Horiz/Vertical  scrollbars?
Can the scrollbars be customized?
Thanks again.!

4 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 27 Dec 2008, 11:09 PM
Hello Jon,

The carousel does not have such event but since it relies on a ScrollViewer you can use the ScrollChanged event of the ScrollViewer class to determine when the carousel has moved. All you need to do is to hook up to the ScrollChanged event like that:

<Grid> 
    <telerik:RadCarousel ScrollViewer.ScrollChanged="CarouselScrollChanged" /> 
</Grid> 

We are always looking for ways to improve our products and your question about the event got us intrigued. Could you share with us your application scenario where such event is needed? We could possibly introduce an event that is similar to the ScrollChanged event in a future release.

The answer to your second question is very straightforward - the scrollbars are fully customizable. You may refer to this sample project to find out how the default appearance of the scrollbars can be changed. There are three examples in this sample project - the one called ModifiedStyles contains the information that you are looking for.

All the best,
Milan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 27 Dec 2008, 11:29 PM
HI..
thanks for the info.
I'm using the Carousel as a rolodex with pictures of the user and general info. When the Item is clicked on I update the detail in grids and textboxes below the carousel - i want to reset the textboxes and grids when the carousel is 'changed' or ScrollChanged.
0
Milan
Telerik team
answered on 29 Dec 2008, 08:45 AM
Hi Jon,

We will take into consideration adding such event to the RadCarousel. You have provided us with a very valuable feedback and your telerik poits have been updated accordingly.

Since you can now only use the ScrollChanged event, I just want to ask you if it is sufficient for your scenario?

Regards,
Milan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nor
Top achievements
Rank 1
answered on 29 Jan 2009, 09:08 PM
However ScrollViewer.ScrollChanged  event is called when items moves and gone to the code but it dosent reflect the interface on wpf like updating details according to current item .But SelectionChanged reflects the interface.

Tags
Carousel
Asked by
Jon
Top achievements
Rank 1
Answers by
Milan
Telerik team
Jon
Top achievements
Rank 1
Nor
Top achievements
Rank 1
Share this question
or