Jump Slideview to specific item

5 posts, 0 answers
  1. Jon
    Jon avatar
    4 posts
    Member since:
    Apr 2012

    Posted 11 May 2012 Link to this post

    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
  2. Jon
    Jon avatar
    4 posts
    Member since:
    Apr 2012

    Posted 11 May 2012 Link to this post

    Nevermind. I found the power of Pagination so I'm good now :)
  3. DevCraft banner
  4. Eng
    Eng avatar
    21 posts
    Member since:
    Jun 2013

    Posted 13 Jun 2013 Link to this post

    How to set slide view selected item ?
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 13 Jun 2013 Link to this post

    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.
  6. Eng
    Eng avatar
    21 posts
    Member since:
    Jun 2013

    Posted 13 Jun 2013 Link to this post

    Yes  it helps ,Thnx   :D
Back to Top
DevCraft banner