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

RadCarousel Newbie Questions

5 Answers 106 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Harri
Top achievements
Rank 1
Harri asked on 04 Feb 2013, 12:10 PM
Hi,

I started work with RadCarousel recently, and I have 2 questions:

1) Is there a way to hide RadCarousel navigation panel ?  (navigation panel screenshot attached)
2) How can i make the front Item always be selected?

Thanks for your help,

Harri.

5 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 04 Feb 2013, 03:25 PM
Hello Harri,

Let me go straight to your questions:

1. In order to hide RadCarousel's navigation panel, you can set its property - VerticalScrollBarVisibility to "Disabled".

2. You can set Carousel's selected item like so:

this.radCarousel1.SelectedItem = this.radCarousel1.Items[0];

I hope this helps.

Greetings,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Harri
Top achievements
Rank 1
answered on 05 Feb 2013, 06:08 AM
First, thanks for your help.

1) Almost true. I used HorizontalScrollBarVisibility="Hidden", and that's what I wanted.

2)I think you did not understand me. What I want to do is to Bind SelectedItem to TopContainer. With Xaml Binding It does not work. I tried handel TopContainerChanged event, and in the eventhandler set the top container to be selected,

 

 

 

'private OnTopContainerChanged(object sender, RoutedEventArgs e)

 

{

 

 

if (sampleRadCarousel.SelectedItem !=

 

((sampleRadCarousel.Panel

 

as RadCarouselPanel).TopContainer as CarouselItem).DataContext)

 

{

sampleRadCarousel.SelectedItem =

((sampleRadCarousel.Panel

 

as RadCarouselPanel).TopContainer as CarouselItem).DataContext;

 

}

}'

 

 

 

but it crashes. (exception attached)


I also tried to do it manually, when I call LineLeft or LineRight set the selectedItem but it stops the animation of movement.

I'll be glad to find a solution,
Harri.

0
Maya
Telerik team
answered on 05 Feb 2013, 08:29 AM
Hi Harri,

I have found the cause of the exception you get and it has been resolved right away. The fix will be available in our next internal build coming on Monday. Thus you should be able to work with the code you pasted below for the handler of TopContainerChanged event. 
Thank you for reporting it. I have updated your telerik points accordingly.  

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Harri
Top achievements
Rank 1
answered on 05 Feb 2013, 09:16 AM
Hi. my lisence is for WPF Q3 2011 SP1. How do I get the update ?
0
Iva
Telerik team
answered on 08 Feb 2013, 08:44 AM
Hi Harri,

in case you have purchased a WPF Conrols license and have active subscription and support, you can update your WPF controls by going to your Telerik.com account Manage Products > Choosing your product > Download installer and other resources. 

Still I was not able to find a WPF Controls license under efratr@tehila.gov.il and could locate a WPF trial only that was downloaded on February, 5th. Could you please let us know, if you are referring to the trial license or to a paid license that is under another telerik.com account?

Regards,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Carousel
Asked by
Harri
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Harri
Top achievements
Rank 1
Maya
Telerik team
Iva
Telerik team
Share this question
or