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

Selecting a carousel item by double click

2 Answers 114 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
hkdave95
Top achievements
Rank 2
hkdave95 asked on 19 Oct 2008, 08:05 PM
Hi

I need to select a carousel item by souble clicking it.

Once I have double clicked I need to know whcih Item I have clicked.

Do you have any examples of this ?

Kind Regards

David

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 20 Oct 2008, 02:51 PM
Hi hkdave95,

I'm wondering if by selection you mean bringing a carousel item to the center of the path? If this is the case, we can send to you a sample application that demonstrates how an item can be brought into view by double clicking it. Since this application requires a custom build that cannot be posted on our public forum, you can request the application by opening a support ticket.

Greetings,
Milan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 20 Dec 2012, 03:24 PM
What about double clikcing on an carousel item (in my case a System.Windows.Controls.Image object) and having it open the actual file as if somone double clicked the *.png

How do I get the current selected carousel item index/object?

I have the Image objects in a collection, so I thought returning int myRadCarousel.Items.CurrentPosition; would give me the index of my collection to open, but CurrentPosition is always zero when I select and doubleclick carousel items.
The other alternative is having the blob of the carousel image returned somehow so i can compare it to items in my collection. 
(MouseDoubleClikc event triggers fine.)

EDIT:   Found the simple solution solution after much searching.

private void myRadCarousel_MouseDoubleClick(object sender, EventArgs e)
{
    int index = myRadCarousel.Items.IndexOf(myRadCarousel.SelectedItem);
    ImageInterface image = myObservableCollectionOfImageInterfaces.ElementAt(index);

    Process proc = new Process();
    proc.StarInfo = new ProcessStartInfo(image.fullFileName, "");
    proc.Start();
}
Tags
Carousel
Asked by
hkdave95
Top achievements
Rank 2
Answers by
Milan
Telerik team
Michael
Top achievements
Rank 1
Share this question
or