Reset the list of items to the start

Thread is closed for posting
2 posts, 0 answers
  1. paul
    paul avatar
    16 posts
    Member since:
    Jan 2011

    Posted 06 Jan 2012 Link to this post


    I have a horizontal looping list which scrolls allowing the user to select an item.  This looping list is hidden when not required.

    Now the problem is that if I reload the datasource of this looping list and then unhide it, the list is still showing in the position it was last used and when the user taps an item on the list it crashes with an internal error (not one I can trap).  

    If you can tell me how to programatically reset the looping list so that it displays the first item it will resolve the issue.  I have tried setting selected index to 0 but this does not display the first item.

    Any help most appreciated.
  2. Todor
    Todor avatar
    798 posts

    Posted 11 Jan 2012 Link to this post

    Hi Paul,

    Thank you for your question.

    RadLoopingList resets its panel when its DataSource is changed, so you can set it to a new LoopingListDataSource and then turn it back to your collection. In addition, if you want to remove the current selection you can set the SelectedIndex property to -1.

    I hope this information helps. If it does not solve your issue, I would kindly like to ask you to prepare a sample project reproducing the undesired behavior, so I could examine it and assist you further.
    Please note that you will have to open a new support ticket in order to attach a project.

    All the best,
    the Telerik team

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

Back to Top