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

Jump Slideview to specific item

4 Answers 80 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon
Top achievements
Rank 1
Jon asked on 11 May 2012, 05:47 AM
I have a SliderView and ListBox that I want to tie together. So when you select an item in the ListBox I want the SlideView to jump to that item. I'm using the ListBox as a way to scroll through the large set of items.

The only property I see for the SlideView is the SelectedItem property. Can I use SelectedItem to move the SlideView to a specific item in its collection? Is it even possible to do this?

Thanks,
JT

4 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 11 May 2012, 06:58 AM
Nevermind. I found the power of Pagination so I'm good now :)
0
Eng
Top achievements
Rank 1
answered on 13 Jun 2013, 09:55 AM
How to set slide view selected item ?
0
Todor
Telerik team
answered on 13 Jun 2013, 10:01 AM
Hi,

By simply setting the SelectedItem property. It is of type object, so you can set it with the value of an item of your collection that you want to be selected. For example, it you have set the ItemsSource like this:
List<MyObject> items = ...
slideView.ItemsSource = items;
You can use the same list to set the selected item:
slideView.SelectedItem = items[3];
I hope this information helps.

Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Eng
Top achievements
Rank 1
answered on 13 Jun 2013, 10:17 AM
Yes  it helps ,Thnx   :D
Tags
SlideView
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Eng
Top achievements
Rank 1
Todor
Telerik team
Share this question
or