Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Windows Phone 7 > DataBoundListBox > Scrolling to a randomly selected item?

Answered Scrolling to a randomly selected item?

Feed from this thread
  • Craig avatar

    Posted on Oct 7, 2011 (permalink)

    Hello,

       I have a List of just over 100 items and I have a button that randomly selects one of the items.  Using the built-in list box I would just call "list.ScrollIntoView(list.Items[i])" and it would, well, scroll into view.  How do I do this in a DataBoundListBox?

    Craig.

    Reply

  • Answer Deyan Deyan admin's avatar

    Posted on Oct 7, 2011 (permalink)

    Hi Craig,

    Thanks for contacting us and for your question. You can use the BringIntoView method of RadDataBoundListBox to achieve the same.

    Let me know if you need further assistance with this.

    Regards,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Craig avatar

    Posted on Oct 7, 2011 (permalink)

    Yeah, that worked just like advertised.  Of course, now that I look at it, it isn't very Metro.  Is there a way to make it animate from one selection to another?  Perhaps with a little bounce at the end?  That would be awesome. :)

    Thanks!!

    Reply

  • Deyan Deyan admin's avatar

    Posted on Oct 7, 2011 (permalink)

    Hello Craig,

    Thanks for writing back.

    Currently, there is no an out-of-the-box way to animate what BringIntoView does. However, with the Q3 version of our suite we will provide support for item animations in RadDataBoundListBox. I believe that with this functionality you could bring some freshness to your app. Make sure to follow our blogs where we will officially announce all new features and will make demonstrations.

    Do not hesitate to write back in case you have further questions or need assistance.

    Best wishes,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Windows Phone 7 > DataBoundListBox > Scrolling to a randomly selected item?