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

RadCarouselPanel not scroll by clicking item

3 Answers 100 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Jigna
Top achievements
Rank 1
Jigna asked on 08 May 2009, 02:48 PM

Hi,

I have used RadCarouselPanel with Button (Images used in the ex.) control as items as well appllied style to button. The problem is I am not getting scroll effect while clicking on button as demo shows  whereas it shows as Carousel effect on the form.

  <telerik:RadCarouselPanel x:Name="Panel1" VerticalAlignment="Center"
            IsOpacityEnabled="True" IsScalingEnabled="True" IsPathVisible="True"
            PathPadding="50" CanHorizontallyScroll="True" CanVerticallyScroll="True" >
                <Button  Style="{DynamicResource StudyMode}">Menu 1</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 2</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 3</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 4</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 5</Button>
                <Button  Style="{DynamicResource StudyMode}">Menu 6</Button>
            </telerik:RadCarouselPanel>

I can not understand what is missing. I could not find any method / way to get it work.

Thanks in advance for any help

3 Answers, 1 is accepted

Sort by
0
Punit
Top achievements
Rank 1
answered on 11 May 2009, 05:37 AM
Hi,

I have the same problem as Jigna has. I also want to scroll by clicking buttons in the carousel panel.
If anybody has any ways to achieve this functionality, please answer it.

Thanks,
 
Punit
0
Milan
Telerik team
answered on 12 May 2009, 07:30 AM
Hello Punit,

The Button control handles the mouse/keyboard events and that's why the carousel is not scrolling when you click a button. There is a workaround though - you can handle the click event of your buttons and in the event handler you can manually scroll to the respective carousel item. I have attached a project that demonstrates this approach.
Hope this helps.

Best wishes,
Milan
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.
0
Punit
Top achievements
Rank 1
answered on 12 May 2009, 01:00 PM
Hello Admin / Telerik team ,

Thanks a lot for answer.

As I have used Rad panel, your example cannot set directly by cut / paste. But your explanation guide me to find my solution.

Thanks.

Punit

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